@@ -26,54 +26,54 @@ import
2626# ############################################################
2727
2828
29- const Iters = 10_000
29+ const Iters = 10_000_000
3030const MulIters = 100
3131const AvailableCurves = [
3232 # P224,
33- BN254_Nogami,
34- BN254_Snarks,
33+ # BN254_Nogami,
34+ # BN254_Snarks,
3535 # Edwards25519,
3636 # P256,
3737 Secp256k1 ,
38- Pallas ,
39- Vesta ,
40- BLS12_377 ,
41- BLS12_381 ,
38+ # Pallas,
39+ # Vesta,
40+ # BLS12_377,
41+ # BLS12_381,
4242]
4343
4444proc main () =
4545 separator ()
4646 staticFor i, 0 , AvailableCurves .len:
4747 const curve = AvailableCurves [i]
4848 addBench (EC_ShortW_Prj[Fp [curve], G1 ], Iters )
49- addBench (EC_ShortW_Jac[Fp [curve], G1 ], Iters )
50- addBench (EC_ShortW_JacExt[Fp [curve], G1 ], Iters )
51- mixedAddBench (EC_ShortW_Prj[Fp [curve], G1 ], Iters )
52- mixedAddBench (EC_ShortW_Jac[Fp [curve], G1 ], Iters )
53- mixedAddBench (EC_ShortW_JacExt[Fp [curve], G1 ], Iters )
54- doublingBench (EC_ShortW_Prj[Fp [curve], G1 ], Iters )
55- doublingBench (EC_ShortW_Jac[Fp [curve], G1 ], Iters )
56- doublingBench (EC_ShortW_JacExt[Fp [curve], G1 ], Iters )
57- separator ()
58- affFromProjBench (EC_ShortW_Prj[Fp [curve], G1 ], MulIters )
59- affFromJacBench (EC_ShortW_Jac[Fp [curve], G1 ], MulIters )
60- separator ()
61- for numPoints in [10 , 100 , 1000 , 10000 ]:
62- let batchIters = max (1 , Iters div numPoints)
63- affFromProjBatchBench (EC_ShortW_Prj[Fp [curve], G1 ], numPoints, useBatching = false , batchIters)
64- separator ()
65- for numPoints in [10 , 100 , 1000 , 10000 ]:
66- let batchIters = max (1 , Iters div numPoints)
67- affFromProjBatchBench (EC_ShortW_Prj[Fp [curve], G1 ], numPoints, useBatching = true , batchIters)
68- separator ()
69- for numPoints in [10 , 100 , 1000 , 10000 ]:
70- let batchIters = max (1 , Iters div numPoints)
71- affFromJacBatchBench (EC_ShortW_Jac[Fp [curve], G1 ], numPoints, useBatching = false , batchIters)
72- separator ()
73- for numPoints in [10 , 100 , 1000 , 10000 ]:
74- let batchIters = max (1 , Iters div numPoints)
75- affFromJacBatchBench (EC_ShortW_Jac[Fp [curve], G1 ], numPoints, useBatching = true , batchIters)
76- separator ()
49+ # addBench(EC_ShortW_Jac[Fp[curve], G1], Iters)
50+ # addBench(EC_ShortW_JacExt[Fp[curve], G1], Iters)
51+ # mixedAddBench(EC_ShortW_Prj[Fp[curve], G1], Iters)
52+ # mixedAddBench(EC_ShortW_Jac[Fp[curve], G1], Iters)
53+ # mixedAddBench(EC_ShortW_JacExt[Fp[curve], G1], Iters)
54+ # doublingBench(EC_ShortW_Prj[Fp[curve], G1], Iters)
55+ # doublingBench(EC_ShortW_Jac[Fp[curve], G1], Iters)
56+ # doublingBench(EC_ShortW_JacExt[Fp[curve], G1], Iters)
57+ # separator()
58+ # affFromProjBench(EC_ShortW_Prj[Fp[curve], G1], MulIters)
59+ # affFromJacBench(EC_ShortW_Jac[Fp[curve], G1], MulIters)
60+ # separator()
61+ # for numPoints in [10, 100, 1000, 10000]:
62+ # let batchIters = max(1, Iters div numPoints)
63+ # affFromProjBatchBench(EC_ShortW_Prj[Fp[curve], G1], numPoints, useBatching = false, batchIters)
64+ # separator()
65+ # for numPoints in [10, 100, 1000, 10000]:
66+ # let batchIters = max(1, Iters div numPoints)
67+ # affFromProjBatchBench(EC_ShortW_Prj[Fp[curve], G1], numPoints, useBatching = true, batchIters)
68+ # separator()
69+ # for numPoints in [10, 100, 1000, 10000]:
70+ # let batchIters = max(1, Iters div numPoints)
71+ # affFromJacBatchBench(EC_ShortW_Jac[Fp[curve], G1], numPoints, useBatching = false, batchIters)
72+ # separator()
73+ # for numPoints in [10, 100, 1000, 10000]:
74+ # let batchIters = max(1, Iters div numPoints)
75+ # affFromJacBatchBench(EC_ShortW_Jac[Fp[curve], G1], numPoints, useBatching = true, batchIters)
76+ # separator()
7777 separator ()
7878
7979main ()
0 commit comments