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

18
.gitignore vendored Normal file
View File

@@ -0,0 +1,18 @@
*.a
.obj/
examples/hello
examples/hello_module
hello.c
microbench*.txt
qjs
qjsc
qjscalc
qjscalc.c
repl.c
run-test262
test262
test262_*.txt
test262o
test262o_*.txt
unicode
unicode_gen