Skip to content

Instantly share code, notes, and snippets.

@ktakashi
Created July 9, 2019 15:23
Show Gist options
  • Save ktakashi/bb9aa94622a0db5dce77d23cb53e927e to your computer and use it in GitHub Desktop.
Save ktakashi/bb9aa94622a0db5dce77d23cb53e927e to your computer and use it in GitHub Desktop.
Gauche benchmark 0.9.7
$ scheme-env run [email protected] bench-gauche.scm
Benchmark: ran equal?, loop, sym, each for 10000 times.
equal?: 0.032 real, 0.030 cpu ( 0.030 user + 0.000 sys)@333333.33/s n=10000
loop: 0.463 real, 0.470 cpu ( 0.470 user + 0.000 sys)@ 21276.60/s n=10000
sym: 8.174 real, 13.350 cpu (12.210 user + 1.140 sys)@ 749.06/s n=10000
Rate equal? loop sym
equal? 333333/s -- 15.667 445.000
loop 21277/s 0.064 -- 28.404
sym 749/s 0.002 0.035 --
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment