Skip to content

AssemblyScript and Rust compile benchmark inspired by V (vlang) ;-)

Notifications You must be signed in to change notification settings

MaxGraey/assemblyscript-compiler-bench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Benchmarks inspired by "V" language

Build / Run bench

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

Results (AssemblyScript) (2020-02-10)

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.

Results (Rust) (rustc 1.43.0-nightly (75cf41afb 2020-03-04))

  • Fixed version which avoid println! macro in every line
real  4m28.044s
user  2m10.426s
sys   1m47.404s

About

AssemblyScript and Rust compile benchmark inspired by V (vlang) ;-)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published