Ran
|
Jobs
2
|
Files
59
|
Run time
3min
|
Badge
Embed ▾
README BADGES
|
push
travis-ci
<a href="https://github.com/spesmilo/electrum/commit/<a class=hub.com/spesmilo/electrum/commit/65d896be5a646e9c0650feaba0ddd36de4833918">65d896be5<a href="https://github.com/spesmilo/electrum/commit/65d896be5a646e9c0650feaba0ddd36de4833918">">ecc: also use libsecp256k1 for point addition time taken to add points changes to around 35% of what it was with python-ecdsa ----- # benchmark runs before: &gt; python3.7-64 ..\wspace\201909_libsecp256k1_point_addition\bench.py time taken: 3.7693 seconds &gt; python3.7-64 ..\wspace\201909_libsecp256k1_point_addition\bench.py time taken: 3.8123 seconds &gt; python3.7-64 ..\wspace\201909_libsecp256k1_point_addition\bench.py time taken: 3.7937 seconds # benchmark runs after: &gt; python3.7-64 ..\wspace\201909_libsecp256k1_point_addition\bench.py time taken: 1.3127 seconds &gt; python3.7-64 ..\wspace\201909_libsecp256k1_point_addition\bench.py time taken: 1.3000 seconds &gt; python3.7-64 ..\wspace\201909_libsecp256k1_point_addition\bench.py time taken: 1.3128 seconds ----- # benchmark script: import os import time from electrum.ecc import generator from electrum.crypto import sha256 rand_bytes = os.urandom(32) #rand_bytes = bytes.fromhex('</a><a class="double-link" href="https://github.com/spesmilo/electrum/commit/<a class="double-link" href="https://github.com/spesmilo/electrum/commit/d3d88983b91ee6dfd546ccf89b9a1ffb23b01bf2">d3d88983b</a>">d3d88983b</a><a href="https://github.com/spesmilo/electrum/commit/65d896be5a646e9c0650feaba0ddd36de4833918">eef322c2808cb3d951a3c116') point_pairs = [] for i in range(30000): rand_bytes = sha256(rand_bytes) rand_int = int.from_bytes(rand_bytes, "big") a = generator() * rand_int rand_bytes = sha256(rand_bytes) rand_int = int.from_bytes(rand_bytes, "big") b = generator() * rand_int point_pairs.append((a,b)) t0 = time.time() for a, b in point_pairs: c = a + b t = time.time() - t0 print(f"time taken: {t:.4f} seconds")
10526 of 19304 relevant lines covered (54.53%)
1.09 hits per line
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 9003.1 | 59 |
54.5 |
Travis Job 9003.1 | |
2 | 9003.2 | 59 |
54.52 |
Travis Job 9003.2 |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|