Actions
Feature #619
closedimproved performance of BASIC_OP_UNREDEFINED_P
Status:
Closed
Assignee:
-
Target version:
-
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
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
Like0
Like0