1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/benchmark/mjit_kernel.yml
Takashi Kokubun 24fa37d87a
Make Kernel#then, #yield_self, #frozen? builtin (#3283)
* Make Kernel#then, #yield_self, #frozen? builtin

* Fix test_jit
2020-07-03 18:02:43 -07:00

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