constantine/benchmarks
Mamy Ratsimbazafy e5612f5705
Multi-Scalar-Multiplication / Linear combination (#220)
* unoptimized msm

* MSM: reorder loops

* add a signed windowed recoding technique

* improve wNAF table access

* use batchAffine

* revamp EC tests

* MSM signed digit support

* refactor MSM: recode signed ahead of time

* missing test vector

* refactor allocs and Alloca sideeffect

* add an endomorphism threshold

* Add Jacobian extended coordinates

* refactor recodings, prepare for parallelizable on-the-fly signed recoding

* recoding changes, introduce proper NAF for pairings

* more pairings refactoring, introduce miller accumulator for EVM

* some optim to the addchain miller loop

* start optimizing multi-pairing

* finish multi-miller loop refactoring

* minor tuning

* MSM: signed encoding suitable for parallelism (no precompute)

* cleanup signed window encoding

* add prefetching

* add metering

* properly init result to infinity

* comment on prefetching

* introduce vartime inversion for batch additions

* fix JacExt infinity conversion

* add batchAffine for MSM, though slower than JacExtended at the moment

* add a batch affine scheduler for MSM

* Add Multi-Scalar-Multiplication endomorphism acceleration

* some tuning

* signed integer fixes + 32-bit + tuning

* Some more tuning

* common msm bench + don't use affine for c < 9

* nit
2023-02-16 12:45:05 +01:00
..
platforms benchmarking skips cycle counting for ARM 2020-04-15 21:24:18 +02:00
bench_blssig_on_bls12_381_g2.nim BLS Aggregate and Batch verify (#214) 2023-01-27 00:42:12 +01:00
bench_blueprint.nim Parallel batchadd (#215) 2023-01-29 01:06:37 +01:00
bench_ec_g1.nim Multi-Scalar-Multiplication / Linear combination (#220) 2023-02-16 12:45:05 +01:00
bench_ec_g1_batch.nim Multi-Scalar-Multiplication / Linear combination (#220) 2023-02-16 12:45:05 +01:00
bench_ec_g1_batch.nim.cfg Parallel batchadd (#215) 2023-01-29 01:06:37 +01:00
bench_ec_g1_msm_bls12_381.nim Multi-Scalar-Multiplication / Linear combination (#220) 2023-02-16 12:45:05 +01:00
bench_ec_g1_msm_bn254_snarks.nim Multi-Scalar-Multiplication / Linear combination (#220) 2023-02-16 12:45:05 +01:00
bench_ec_g1_scalar_mul.nim Multi-Scalar-Multiplication / Linear combination (#220) 2023-02-16 12:45:05 +01:00
bench_ec_g2.nim Multi-Scalar-Multiplication / Linear combination (#220) 2023-02-16 12:45:05 +01:00
bench_ec_g2_scalar_mul.nim Multi-Scalar-Multiplication / Linear combination (#220) 2023-02-16 12:45:05 +01:00
bench_elliptic_template.nim Multi-Scalar-Multiplication / Linear combination (#220) 2023-02-16 12:45:05 +01:00
bench_fields_template.nim Multi-Scalar-Multiplication / Linear combination (#220) 2023-02-16 12:45:05 +01:00
bench_fp.nim Multi-Scalar-Multiplication / Linear combination (#220) 2023-02-16 12:45:05 +01:00
bench_fp2.nim Multi-Scalar-Multiplication / Linear combination (#220) 2023-02-16 12:45:05 +01:00
bench_fp4.nim Multi-Scalar-Multiplication / Linear combination (#220) 2023-02-16 12:45:05 +01:00
bench_fp6.nim Multi-Scalar-Multiplication / Linear combination (#220) 2023-02-16 12:45:05 +01:00
bench_fp12.nim Multi-Scalar-Multiplication / Linear combination (#220) 2023-02-16 12:45:05 +01:00
bench_fp_double_precision.nim move staticFor to the inner repo, not helpers/ for unblocking nimble install (#216) 2023-02-07 13:11:44 +01:00
bench_hash_to_curve.nim BN254 - Hash-to-Curve (SVDW method) (#190) 2022-04-26 21:24:07 +02:00
bench_pairing_bls12_377.nim move staticFor to the inner repo, not helpers/ for unblocking nimble install (#216) 2023-02-07 13:11:44 +01:00
bench_pairing_bls12_381.nim move staticFor to the inner repo, not helpers/ for unblocking nimble install (#216) 2023-02-07 13:11:44 +01:00
bench_pairing_bn254_nogami.nim move staticFor to the inner repo, not helpers/ for unblocking nimble install (#216) 2023-02-07 13:11:44 +01:00
bench_pairing_bn254_snarks.nim move staticFor to the inner repo, not helpers/ for unblocking nimble install (#216) 2023-02-07 13:11:44 +01:00
bench_pairing_template.nim Multi-Scalar-Multiplication / Linear combination (#220) 2023-02-16 12:45:05 +01:00
bench_poly1305.nim Eip2333 (#202) 2022-08-16 12:07:57 +02:00
bench_sha256.nim Sha256 refactor (#206) 2022-09-19 02:02:57 +02:00
bench_summary_bls12_377.nim move staticFor to the inner repo, not helpers/ for unblocking nimble install (#216) 2023-02-07 13:11:44 +01:00
bench_summary_bls12_381.nim move staticFor to the inner repo, not helpers/ for unblocking nimble install (#216) 2023-02-07 13:11:44 +01:00
bench_summary_bn254_nogami.nim move staticFor to the inner repo, not helpers/ for unblocking nimble install (#216) 2023-02-07 13:11:44 +01:00
bench_summary_bn254_snarks.nim move staticFor to the inner repo, not helpers/ for unblocking nimble install (#216) 2023-02-07 13:11:44 +01:00
bench_summary_pasta.nim move staticFor to the inner repo, not helpers/ for unblocking nimble install (#216) 2023-02-07 13:11:44 +01:00
bench_summary_template.nim Multi-Scalar-Multiplication / Linear combination (#220) 2023-02-16 12:45:05 +01:00
platforms.nim Remove outdated TODOs [skip ci] 2020-10-11 21:33:59 +02:00