Run code on different JS engines and compare. Following data is available for comparison:
- benchmark score
- execution time *
- CPU usage *
- Memory usage *
* for single and bencmark passes
- Build image manually or pull it
docker pull rv4flyver/jsenco
- Place test files in
test
folder (for test examples see https://github.com/rv4Flyver/jsenco/tree/master/tests) - Run it with following command with optional params (see
Parameters
section):
docker run -it -p 3333:3333 \
-v "$(pwd)"/tests:/jsenco/tests \
-v "$(pwd)"/results:/jsenco/results/data \
rv4flyver/jsenco
- Open
http://localhost:3333
to view results after all tests completed.
- Install JSVU
- Install V8, SM and JSC
- Execute
npm start
with optional params (seeParameters
section) - To see test results execute
npm start view
(you need http-server package installed globally) - All results are available in
results/data/
Optional params can be passed to command like:
COMMAND "ENGINES PARAMS" "VIEWER PARAMS"
can be a comma separated list of engines you want to runt tests on:
"V8,SM,JSC"
or to skip testing at all and proceed to viewer immediately
"NONE"
It is possible to skip running viewer at the end of thesting by passing following param after "ENGINES PARAMS":
"SKIP_VIEWER"
npm start "V8,SM,JSC" "SKIP_VIEWER".
npm start "NONE"
docker run -it -p 3333:3333 \
-v "$(pwd)"/tests:/jsenco/tests \
-v "$(pwd)"/results:/jsenco/results/data \
rv4-js-eng-opt-comparator_jsenco "NONE"