Skip to content

Instantly share code, notes, and snippets.

@jwasinger
Created September 29, 2020 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwasinger/083b59a06ea7c523560b8907b7402689 to your computer and use it in GitHub Desktop.
Save jwasinger/083b59a06ea7c523560b8907b7402689 to your computer and use it in GitHub Desktop.
wasmcurves (with subgroup check) vs wasmsnark (without subgroup check)
## wasm-curves:
```
---------------------------------------------------------------------------------------------------------------------
Benchmark Time CPU Iterations UserCounters...
---------------------------------------------------------------------------------------------------------------------
fizzy/parse/main_with_websnark_bignum_hostfuncs 1019 us 1019 us 673 rate=127.256M/s size=129.725k
wabt/parse/main_with_websnark_bignum_hostfuncs 2372 us 2372 us 295 rate=54.6813M/s size=129.725k
wasm3/parse/main_with_websnark_bignum_hostfuncs 75.8 us 75.8 us 9217 rate=1.71145G/s size=129.725k
fizzy/instantiate/main_with_websnark_bignum_hostfuncs 1120 us 1120 us 617
wabt/instantiate/main_with_websnark_bignum_hostfuncs 2439 us 2439 us 283
wasm3/instantiate/main_with_websnark_bignum_hostfuncs 139 us 139 us 5031
fizzy/execute/main_with_websnark_bignum_hostfuncs/-e synth 31203 us 31203 us 22
wabt/execute/main_with_websnark_bignum_hostfuncs/-e synth 1218189 us 1218204 us 1
wasm3/execute/main_with_websnark_bignum_hostfuncs/-e synth 12214 us 12214 us 57
```
## wasmsnark
```
fizzy/parse/main_with_websnark_bignum_hostfuncs 789 us 787 us 879 rate=109.79M/s size=86.428k
wabt/parse/main_with_websnark_bignum_hostfuncs 1805 us 1799 us 388 rate=48.0346M/s size=86.428k
wasm3/parse/main_with_websnark_bignum_hostfuncs 54.5 us 54.4 us 13034 rate=1.58886G/s size=86.428k
fizzy/instantiate/main_with_websnark_bignum_hostfuncs 817 us 814 us 850
wabt/instantiate/main_with_websnark_bignum_hostfuncs 1818 us 1810 us 378
wasm3/instantiate/main_with_websnark_bignum_hostfuncs 107 us 107 us 6587
fizzy/execute/main_with_websnark_bignum_hostfuncs/-e synth 11121 us 11092 us 63
wabt/execute/main_with_websnark_bignum_hostfuncs/-e synth 2181190 us 2175258 us 1
wasm3/execute/main_with_websnark_bignum_hostfuncs/-e synth 6403 us 6386 us 111
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment