mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
24fa37d87a
* Make Kernel#then, #yield_self, #frozen? builtin * Fix test_jit
20 lines
288 B
YAML
20 lines
288 B
YAML
type: lib/benchmark_driver/runner/mjit
|
|
prelude: |
|
|
def mjit_class(obj)
|
|
obj.class
|
|
end
|
|
|
|
def mjit_frozen?(obj)
|
|
obj.frozen?
|
|
end
|
|
|
|
str = ""
|
|
fstr = "".freeze
|
|
|
|
benchmark:
|
|
- mjit_class(self)
|
|
- mjit_class(1)
|
|
- mjit_frozen?(str)
|
|
- mjit_frozen?(fstr)
|
|
|
|
loop_count: 40000000
|