Open
Description
Refer to https://bellard.org/quickjs/bench.html
I am using the following branch to bench jerryscript
https://github.com/lygstate/jerryscript/tree/benchmark
Bench result:
Currently, the QuickJs Splay
splay tree benchmark case are too slow exceptionally, this is more like an jerrscript issue
JerryScript ESNext | QuickJS | Ducktape | NodeJs Jitless | Node | |
---|---|---|---|---|---|
Compile/Run Option | python tools/build.py --clean --lto=OFF --jerry-debugger=ON --jerry-cmdline=ON --jerry-cmdline-snapshot=ON --jerry-math=ON --jerry-ext=ON --amalgam=ON --snapshot-exec=ON --stack-limit=512 --gc-mark-limit=64 --cpointer-32bit=ON --system-allocator=ON --external-context=ON --regexp-strict-mode=ON --js-parser=ON --line-info=ON --error-messages=ON --logging=ON --cmake-param=-GNinja --cmake-param=-DJERRY_LCACHE=1 --cmake-param=-DJERRY_PROPRETY_HASHMAP=1 --profile=es.next |
qjs combined.js | gcc -O3 -DDUK_CMDLINE_CONSOLE_SUPPORT duktape.c duk_cmdline.c duk_console.c -lm -lc -o duk |
node --jitless combined.js | node combined.js |
Engine - Peak Memory Consumption (KB) | |||||
Engine - Peak Stack Usage (KB) | |||||
Binary size (Byte) | 239664 | 5523792 | 582240 | 73873464 | 73873464 |
Standard compatibly | ES 2020 | ES 2020 | Part ES 2015 | ES 2020 | ES 2020 |
Richards | 173 | 876 | 223 | 1188 | 36562 |
DeltaBlue | 180 | 866 | 282 | 1345 | 67302 |
Crypto | 182 | 1016 | 385 | 923 | 46090 |
RayTrace | 291 | 1173 | 617 | 2880 | 52043 |
EarleyBoyer | 408 | 1841 | 686 | 5101 | 55366 |
RegExp | 155 | 255 | 221 | 2513 | 8866 |
Splay | 365 | 1919 | 1296 | 4673 | 32091 |
NavierStokes | 398 | 1701 | 1073 | 1657 | 51740 |
TotalScore | 250 | 1042 | 487 | 2129 | 38483 |