-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* revive Miracl primitives benchmark * Revive BLST benchmarks * Bench hash-to-curve * Add benchmark of BLS sign, verify and fastAggregateVerify * Bench all + add benchmarks to CI * don't bench on 32-bit, inline ASM issue with low-level calls (but high level calls are fine) * Actually it's the SHA256 tests on 32-bit that causes ASM issue due to inlined headers * don't bench at all on 32-bit for now * fix: don't test SH1256 on PowerPC
- Loading branch information
Showing
8 changed files
with
339 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
import | ||
../blscurve, | ||
./bls12381_curve, | ||
./hash_to_curve | ||
./hash_to_curve, | ||
./bls_signature | ||
|
||
# Curve operations | ||
benchScalarMultG1(1000) | ||
benchScalarMultG2(1000) | ||
benchEcAddG1(1000) | ||
benchEcAddG2(1000) | ||
|
||
benchPairingViaDoublePairing(1000) | ||
benchPairingViaMultiPairing(1000) | ||
# Pairings | ||
when BLS_BACKEND == BLST: | ||
benchBLSTPairing(1000) | ||
else: | ||
benchMiraclPairingViaDoublePairing(1000) | ||
benchMiraclPairingViaMultiPairing(1000) | ||
|
||
echo "\n⚠️ Warning: using draft v5 of IETF Hash-To-Curve (HKDF-based)." | ||
echo " This is an outdated draft.\n" | ||
# Hash-to-curve implementation | ||
benchHashToG2(1000) | ||
|
||
# High-level BLS signature scheme | ||
benchSign(1000) | ||
benchVerify(1000) | ||
benchFastAggregateVerify(numKeys = 128, iters = 10) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.