sheetjs/misc/perf.sh
SheetJS e32a2894c4 version bump 0.8.0: performance
- separate i4/r8 code (core functions optimized by v8)
- prefer faster methods when convenient
- node-based performance tests
2014-06-13 11:02:06 -04:00

14 lines
397 B
Bash
Executable File

#!/bin/bash
ARGS="--trace_opt --trace_deopt --trace_inlining --code_comments"
#ARGS="--trace_opt --trace_deopt --code_comments"
SCPT=misc/perf.js
echo 1
make && jshint --show-non-errors ssf.js && make lint &&
MINTEST=1 mocha -b && time node $SCPT && {
node $ARGS $SCPT > perf.log
node --prof $SCPT
echo 1; time node $SCPT >/dev/null
echo 1; time node $SCPT >/dev/null
} && grep disabled perf.log