Skip to content

Instantly share code, notes, and snippets.

@k0kubun
Created Jun 3, 2021
Embed
What would you like to do?
$ cat /tmp/enable.rb
t = TracePoint.new(:class) {}
t.enable
$ cat /tmp/disable.rb
t = TracePoint.new(:class) {}
t.enable
t.disable
$ benchmark-driver -v --rbenv 'disable::3.0.0 -r/tmp/disable.rb;enable::3.0.0 -r/tmp/enable.rb' --repeat-count=8 --output=all --alternate benchmark.yml
disable: ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]
enable: ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]
Calculating -------------------------------------
disable enable
Optcarrot Lan_Master.nes 47.81238774909389 47.10235842098071 fps
48.33449974759942 47.56102341966890
48.46932889925773 48.11053747683036
48.53068026879605 48.24604428304289
48.77596604704323 48.36013209232475
48.84660784712514 48.63600381938785
48.87583940697075 48.69164284087692
48.93739303017681 48.78901439077868
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment