Benchmarks inspired by "V" language
yarn bench-as # or `npm run bench-as`
yarn bench-rs # or `npm run bench-rs`
yarn bench-as
build unoptimized wasm
file from 400,000 lines of typescripty code
yarn bench-rs
compile to native binary file from 400,000 lines of rust code
15-inch MacBook 2019 (2,3 GHz Intel Core i9)
I/O Read : 8.950 ms
I/O Write : 2.959 ms
Parse : 1794.794 ms
Compile : 930.801 ms
Emit : 414.083 ms
Validate : N/A
Optimize : 0.805 ms
real 0m4.195s
user 0m6.039s
sys 0m0.861s
✨ Done in 4.23s.
- Fixed version which avoid
println!
macro in every line
real 4m28.044s
user 2m10.426s
sys 1m47.404s