Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxgraey/assemblyscript-compiler-bench
AssemblyScript and Rust compile benchmark inspired by V (vlang) ;-)
https://github.com/maxgraey/assemblyscript-compiler-bench
assemblyscript bench rust vlang
Last synced: 28 days ago
JSON representation
AssemblyScript and Rust compile benchmark inspired by V (vlang) ;-)
- Host: GitHub
- URL: https://github.com/maxgraey/assemblyscript-compiler-bench
- Owner: MaxGraey
- Created: 2019-03-18T12:03:21.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-08T03:04:16.000Z (almost 5 years ago)
- Last Synced: 2024-10-13T14:50:44.165Z (2 months ago)
- Topics: assemblyscript, bench, rust, vlang
- Language: Rust
- Homepage:
- Size: 1.48 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Benchmarks inspired by ["V" language](https://github.com/vlang/v/blob/e2a19cccd013cd1f35daa7eb9a89037d22ff8a93/website/compilation_speed_test_gen.v#L69)
### Build / Run bench
```sh
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 msreal 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
```