CAMLBOY

Benchmark

Environment

Command

OCaml 4.13.1

opam switch create . ocaml-base-compiler.4.13.1
opam exec -- dune build --profile=release
opam exec -- dune exec -- bin/sdl2/bench.exe resource/games/tobu.gb --frames 1500

OCaml 4.13.1 + Flambda

opam switch create . --package=ocaml-variants.4.13.1+options,ocaml-option-flambda
opam exec -- dune build --profile=release
opam exec -- dune exec -- bin/sdl2/bench.exe resource/games/tobu.gb --frames 1500

js_of_ocaml 3.11.0

Note that for we pass --no-inline flag to js_of_ocaml (source) because disabling inlining improves the FPS significantly (more than 3 times). See this thread in discuss.ocaml.org for more details.

opam switch create . ocaml-base-compiler.4.13.1
opam exec -- dune build
python -m http.server 8000 --directory _build/default/bin/web
xdg-open http://localhost:8000/bench.html?frames=1500&rom_path=./tobu.gb