Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.18 KB

benchmark.md

File metadata and controls

40 lines (27 loc) · 1.18 KB

Benchmark

Environment

  • CPU: Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz
  • OS: Ubuntu 20.04.2
  • Browser: Google Chrome Version 95.0.4638.69

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