Skip to content

Instantly share code, notes, and snippets.

@chfast
Last active November 24, 2020 18:11
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 chfast/c0a375612faaeb68c6e985147ad37692 to your computer and use it in GitHub Desktop.
Save chfast/c0a375612faaeb68c6e985147ad37692 to your computer and use it in GitHub Desktop.
EVM384v7 benchmark results
> ./run_benchmark.sh
Finished bench [optimized] target(s) in 0.04s
Running target/release/deps/eth_pairings-69a4e69246dcf782
running 9 tests
test bench::eip_2537::bench_eip_2537_g1_add ... bench: 5,702 ns/iter (+/- 180)
test bench::eip_2537::bench_eip_2537_g1_double ... bench: 5,815 ns/iter (+/- 398)
test bench::eip_2537::bench_eip_2537_g1_mul_worst_case_double_and_add ... bench: 266,373 ns/iter (+/- 2,488)
test bench::eip_2537::bench_eip_2537_g2_add ... bench: 9,356 ns/iter (+/- 1,776)
test bench::eip_2537::bench_eip_2537_g2_double ... bench: 9,226 ns/iter (+/- 267)
test bench::eip_2537::bench_eip_2537_g2_mul_worst_case_double_and_add ... bench: 900,430 ns/iter (+/- 6,628)
test bench::eip_2537::bench_eip_2537_pairing_2 ... bench: 3,354,516 ns/iter (+/- 75,358)
test bench::eip_2537::bench_eip_2537_pairing_4 ... bench: 5,732,143 ns/iter (+/- 512,553)
test bench::eip_2537::bench_eip_2537_pairing_6 ... bench: 8,048,161 ns/iter (+/- 199,619)
test result: ok. 0 passed; 0 failed; 0 ignored; 9 measured; 228 filtered out
EVM384v7 benchmark results
Intel i7-8565U (Whiskey Lake) 4.6 GHz
MULMODMONT384 bigint.h vs BLST x86_64 ASM [us]
GCC 10 Old [us] New [us]
pairing_eq2_v7_f2mulv3 -0.4061 3096 1839
pairing_eq2_v7_f2mulv4 -0.4611 3538 1907
Clang 11
pairing_eq2_v7_f2mulv3 -0.3009 2527 1767
pairing_eq2_v7_f2mulv4 -0.2907 2640 1873
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment