Skip to content

Instantly share code, notes, and snippets.

@timxor
Last active August 9, 2017 10:08
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 timxor/cc3501ede410bcaaf7fe39fd55a65cfc to your computer and use it in GitHub Desktop.
Save timxor/cc3501ede410bcaaf7fe39fd55a65cfc to your computer and use it in GitHub Desktop.
tims_parity_bench_marks.md

Parity pre compiled contracts benchmarks.

  • bn_128_add -
  • bn_128_mul -
  • bn_128_pairing -
  • ecrecover -
  • modexp_^ - All range permutations below (15 total)
  • sha256 -
  • gas schedule ? - maybe with instructions.rs
  • add - tbd
  • sub - tbd
  • sdiv - tbd
test result: ok. 0 passed; 0 failed; 428 ignored; 0 measured; 0 filtered out

     Running /home/timsiwula/projects/parity/target/release/deps/evm-6594339f13140d37

running 20 tests
test bn_128_add          ... bench:      14,112 ns/iter (+/- 2,402)
test bn_128_mul          ... bench:     902,925 ns/iter (+/- 140,822)
test bn_128_pairing      ... bench:   9,347,946 ns/iter (+/- 5,160,597)
test ecrecover           ... bench:     170,647 ns/iter (+/- 4,661)
test modexp_1_pow0x10001 ... bench:      84,474 ns/iter (+/- 2,316)
test modexp_1_qube       ... bench:      15,540 ns/iter (+/- 490)
test modexp_1_square     ... bench:      10,864 ns/iter (+/- 941)
test modexp_2_pow0x10001 ... bench:     211,545 ns/iter (+/- 21,700)
test modexp_2_qube       ... bench:      35,910 ns/iter (+/- 26,346)
test modexp_2_square     ... bench:      24,473 ns/iter (+/- 2,079)
test modexp_3_pow0x10001 ... bench:     647,423 ns/iter (+/- 115,061)
test modexp_3_qube       ... bench:     109,336 ns/iter (+/- 2,221)
test modexp_3_square     ... bench:      73,951 ns/iter (+/- 5,191)
test modexp_4_pow0x10001 ... bench:   2,068,503 ns/iter (+/- 401,490)
test modexp_4_qube       ... bench:     349,162 ns/iter (+/- 10,948)
test modexp_4_square     ... bench:     233,052 ns/iter (+/- 8,727)
test modexp_5_pow0x10001 ... bench:   7,181,155 ns/iter (+/- 267,439)
test modexp_5_qube       ... bench:   1,199,990 ns/iter (+/- 613,367)
test modexp_5_square     ... bench:     798,582 ns/iter (+/- 84,887)
test sha256              ... bench:       1,813 ns/iter (+/- 555)

test result: ok. 0 passed; 0 failed; 0 ignored; 20 measured; 0 filtered out
=>
=>lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                8
On-line CPU(s) list:   0-7
Thread(s) per core:    2
Core(s) per socket:    4
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 85
Model name:            Intel(R) Xeon(R) CPU
Stepping:              3
CPU MHz:               2000.078
BogoMIPS:              4000.15
Hypervisor vendor:     KVM
Virtualization type:   full
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              56320K
NUMA node0 CPU(s):     0-7
Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc eagerfpu pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms rtm avx512f rdseed adx clflushopt clwb avx512cd xsaveopt
@timxor
Copy link
Author

timxor commented Aug 9, 2017

@pirapira I have not commited the new bench mark yet for bn_128_add, let me know what repo/branch you would like it under.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment