Skip to content

Instantly share code, notes, and snippets.

@eregon
Last active February 22, 2020 12:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eregon/7a33f9fff1d8e084c4f65614ebe513c5 to your computer and use it in GitHub Desktop.
Save eregon/7a33f9fff1d8e084c4f65614ebe513c5 to your computer and use it in GitHub Desktop.
Running OptCarrot on 22/02/2020
From https://github.com/mame/optcarrot@master (80760d237159e84a8e6f937de35d0001c59275a6)
with
$ $RUBY bin/optcarrot -b --print-fps-history -f 3000 examples/Lan_Master.nes
--print-fps-history to verify the final score is close to the rest
-f 3000 to make sure there is more than enough warmup
Using the latest release of each implementation.
$ ruby ...
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux]
fps: 45.49888296700692
$ ruby --jit ...
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) +JIT [x86_64-linux]
fps: 82.85741415610329
$ jruby ...
jruby 9.2.10.0 (2.5.7) 2020-02-18 fffffff OpenJDK 64-Bit Server VM 25.212-b04 on 1.8.0_212-b04 +jit [linux-x86_64]
fps: 27.278127350007715
$ jruby -Xcompile.invokedynamic=true ...
jruby 9.2.10.0 (2.5.7) 2020-02-18 fffffff OpenJDK 64-Bit Server VM 25.212-b04 on 1.8.0_212-b04 +indy +jit [linux-x86_64]
fps: 86.44257428185085
$ truffleruby --native ...
truffleruby 20.0.0, like ruby 2.6.5, GraalVM CE Native [x86_64-linux]
fps: 187.87855179769159
$ truffleruby --jvm ...
truffleruby 20.0.0, like ruby 2.6.5, GraalVM CE JVM [x86_64-linux]
fps: 267.47594982617613
Interpreter FPS
Ruby 2.7.0 45
Ruby 2.7.0 --jit 83
JRuby 9.2.10.0 27
JRuby 9.2.10.0 -Xcompile.invokedynamic=true 86
TruffleRuby 20.0.0 Native 188
TruffleRuby 20.0.0 JVM 267
@eregon
Copy link
Author

eregon commented Feb 22, 2020

fps-history-3000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment