blob: 9e0e046ed4d728f46181c5000068dc0e5e310ec3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
prelude: |
named_module = Kernel
module FakeName
def self.name
"NotMyame".freeze
end
end
MOD_NAME = Module.instance_method(:name)
benchmark:
fastpath: MOD_NAME.bind_call(Kernel)
slowpath: MOD_NAME.bind_call(FakeName)
loop_count: 100_000
|