Improve microbench

- remove import statements (invoke with qjs --std)
- fix compatibility issues with node
- add more loop styles
- add more string concatenation tests
- use === and !=== where appropriate
- fix sort timing log
- add `-r ref_file` command line option to specify reference file
- add .gitignore file with target file patterns
This commit is contained in:
Charlie Gordon
2024-02-11 12:11:53 +01:00
parent 2c793e5097
commit c9e6c56c70
3 changed files with 106 additions and 30 deletions

View File

@@ -440,10 +440,10 @@ stats: qjs qjs32
./qjs32 -qd
microbench: qjs
./qjs tests/microbench.js
./qjs --std tests/microbench.js
microbench-32: qjs32
./qjs32 tests/microbench.js
./qjs32 --std tests/microbench.js
# ES5 tests (obsolete)
test2o: run-test262