Skip to content

Commit

Permalink
Rename project
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomontalbano committed Feb 27, 2019
1 parent 73b2719 commit 29846f3
Show file tree
Hide file tree
Showing 7 changed files with 310 additions and 861 deletions.
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "wa-vs-js-benchmark"
name = "wasm-vs-js-benchmark"
version = "0.1.0"
authors = ["Marco Montalbano <marcomontalbano.work@gmail.com>"]
description = "A benchmark for WebAssembly and Javascript."
license = "MIT"
repository = "https://github.com/marcomontalbano/wa-vs-js-benchmark"
repository = "https://github.com/marcomontalbano/wasm-vs-js-benchmark"
edition = "2018"

[lib]
Expand Down
14 changes: 7 additions & 7 deletions README.md
@@ -1,6 +1,6 @@
# WebAssembly vs Javascript

[![Build Status](https://travis-ci.org/marcomontalbano/wa-vs-js-benchmark.svg?branch=master)](https://travis-ci.org/marcomontalbano/wa-vs-js-benchmark)
[![Build Status](https://travis-ci.org/marcomontalbano/wasm-vs-js-benchmark.svg?branch=master)](https://travis-ci.org/marcomontalbano/wasm-vs-js-benchmark)

*A comparison between WebAssembly and Javascript made for ~~studying~~ fun.*

Expand Down Expand Up @@ -86,7 +86,7 @@ $ cargo build --release
Now that we have built our code, we can run it:

```sh
$ ./target/release/wa-vs-js-benchmark primes-get_primes 11
$ ./target/release/wasm-vs-js-benchmark primes-get_primes 11
```

We can also use `cargo run` to compile and then run it, all in one step:
Expand Down Expand Up @@ -150,19 +150,19 @@ These benchmarks are recorded on a MacBook Pro (15-inch, 2016) having these spec
$ cargo build --release

$ hyperfine --warmup 3 --export-markdown BENCHMARK.md \
'./target/release/wa-vs-js-benchmark primes-get_primes 100000' \
'./target/release/wa-vs-js-benchmark matrix-multiply 500 500'
'./target/release/wasm-vs-js-benchmark primes-get_primes 100000' \
'./target/release/wasm-vs-js-benchmark matrix-multiply 500 500'
```

| Command | Mean [s] | Min…Max [s] |
|:---|---:|---:|
| `./target/release/wa-vs-js-benchmark primes-get_primes 100000` | 1.198 ± 0.006 | 1.191…1.212 |
| `./target/release/wa-vs-js-benchmark matrix-multiply 500 500` | 0.420 ± 0.006 | 0.411…0.432 |
| `./target/release/wasm-vs-js-benchmark primes-get_primes 100000` | 1.211 ± 0.018 | 1.196…1.255 |
| `./target/release/wasm-vs-js-benchmark matrix-multiply 500 500` | 0.435 ± 0.016 | 0.417…0.469 |


### WebAssembly vs Javascript

https://marcomontalbano.github.io/wa-vs-js-benchmark
https://marcomontalbano.github.io/wasm-vs-js-benchmark


## Useful Links
Expand Down

0 comments on commit 29846f3

Please sign in to comment.