Skip to content

Instantly share code, notes, and snippets.

@k0kubun
Created June 3, 2021 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k0kubun/8c50a09e94720fbadd019ba7fd04a73d to your computer and use it in GitHub Desktop.
Save k0kubun/8c50a09e94720fbadd019ba7fd04a73d to your computer and use it in GitHub Desktop.
$ 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