Project

General

Profile

Actions

Feature #619

closed

improved performance of BASIC_OP_UNREDEFINED_P

Added by cout (Paul Brannan) over 15 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:19171]

Description

=begin
ruby_vm_redefined_flag uses bit arithmetic to manage which flags have been redefined. Performance can be improved by using a separate word for each redefined operation. In 100 runs user time was improved 1.4% at the 95th percentile:

require 'benchmark'

Percentile Before After
50 7.60 7.52
90 7.73 7.63
95 7.76 7.65
98 7.92 7.69
99 8.06 7.73

Performance numbers at the 98th percentile and above likely includes outliers.

Test was run on a dual Xeon 3.06GHz.

Test script:

N = 10_000_000

Benchmark.bm { |x|
x.report do
for i in 1..N do
1+1
end
end
}
=end


Files

basic_op_unredefined_p_perf.patch (2.62 KB) basic_op_unredefined_p_perf.patch cout (Paul Brannan), 10/08/2008 12:10 AM
Actions #1

Updated by ko1 (Koichi Sasada) over 15 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r19762.
=end

Actions

Also available in: Atom PDF

Like0
Like0