Skip to content

Instantly share code, notes, and snippets.

@MariusVanDerWijden
Created June 23, 2020 12:37
Show Gist options
  • Save MariusVanDerWijden/df89284dace3c85bac49bfbe8ab30f4c to your computer and use it in GitHub Desktop.
Save MariusVanDerWijden/df89284dace3c85bac49bfbe8ab30f4c to your computer and use it in GitHub Desktop.

BenchmarkPrecompiledEcrecover/-Gas=3000-16	7512	157717 ns/op	3000 gas/op	 11.9 mgas/s	1.85 s/op	1280 B/op	9 allocs/op
BenchmarkPrecompiledSha256/128-Gas=108-16	 1608877	783 ns/op	108 gas/op	 66.5 mgas/s	2.60 s/op	32 B/op	1 allocs/op
BenchmarkPrecompiledRipeMD/128-Gas=1080-16	489368	2066 ns/op	1080 gas/op	4745 mgas/s	0.111 s/op	 176 B/op	3 allocs/op
BenchmarkPrecompiledIdentity/128-Gas=27-16	61946466	 20.3 ns/op	 27.0 gas/op	647 mgas/s	2.58 s/op	0 B/op	0 allocs/op
BenchmarkPrecompiledModExp/eip_example1-Gas=13056-16	 21351	 51260 ns/op	 13056 gas/op	294 mgas/s	0.945 s/op	2689 B/op	41 allocs/op
BenchmarkPrecompiledModExp/nagydani-1-qube-Gas=204-16 	305833	3821 ns/op	204 gas/op	 36.8 mgas/s	1.69 s/op	1473 B/op	22 allocs/op
BenchmarkPrecompiledBn256Add/chfast1-Gas=150-16	 64232	 18761 ns/op	150 gas/op	4.39 mgas/s	2.05 s/op	 784 B/op	16 allocs/op
BenchmarkPrecompiledBn256Add/cdetrio5-Gas=150-16 	706676	1517 ns/op	150 gas/op	147 mgas/s	0.723 s/op	 624 B/op	11 allocs/op
BenchmarkPrecompiledBn256ScalarMul/chfast1-Gas=6000-16	 10660	104968 ns/op	6000 gas/op	 52.9 mgas/s	1.19 s/op	1288 B/op	26 allocs/op
BenchmarkPrecompiledBn256ScalarMul/chfast2-Gas=6000-16	9841	115871 ns/op	6000 gas/op	 42.0 mgas/s	1.40 s/op	1496 B/op	29 allocs/op
BenchmarkPrecompiledBn256Pairing/one_point-Gas=79000-16	 428	 2503275 ns/op	 79000 gas/op	 46.2 mgas/s	0.714 s/op	 55328 B/op	 501 allocs/op
BenchmarkPrecompiledBn256Pairing/two_point_match_2-Gas=113000-16	 354	 3983640 ns/op	113000 gas/op	9.75 mgas/s	4.10 s/op	103952 B/op	 980 allocs/op
BenchmarkPrecompiledBlake2F/vector_5-Gas=12-16 	 2856900	399 ns/op	 12.0 gas/op	 24.2 mgas/s	1.41 s/op	64 B/op	1 allocs/op
BenchmarkPrecompiledBlake2F/vector_6-Gas=12-16 	 2836255	404 ns/op	 12.0 gas/op	 23.1 mgas/s	1.47 s/op	64 B/op	1 allocs/op
BenchmarkPrecompiledBLS12381G1Add/matter_g1_add_53-Gas=600-16 	 57446	 25100 ns/op	600 gas/op	7.69 mgas/s	4.42 s/op	1616 B/op	27 allocs/op
BenchmarkPrecompiledBLS12381G1Add/matter_g1_add_89-Gas=600-16 	 42074	 23861 ns/op	600 gas/op	626 mgas/s	0.0399 s/op	1616 B/op	27 allocs/op
BenchmarkPrecompiledBLS12381G1Mul/matter_g1_mul_24-Gas=12000-16	3948	297471 ns/op	 12000 gas/op	 26.9 mgas/s	1.74 s/op	1248 B/op	21 allocs/op
BenchmarkPrecompiledBLS12381G1Mul/matter_g1_mul_25-Gas=12000-16	4116	311137 ns/op	 12000 gas/op	 17.5 mgas/s	2.81 s/op	1248 B/op	21 allocs/op
BenchmarkPrecompiledBLS12381G1MultiExp/bls_g1multiexp_larger-Gas=89400-16	 537	 2234424 ns/op	 89400 gas/op	 24.0 mgas/s	2.00 s/op	206937 B/op	3893 allocs/op
BenchmarkPrecompiledBLS12381G1MultiExp/matter_g1_multiexp_0-Gas=64128-16 	 360	 3457507 ns/op	 64128 gas/op	9.40 mgas/s	2.45 s/op	222824 B/op	3690 allocs/op
BenchmarkPrecompiledBLS12381G2Add/matter_g2_add_25-Gas=4500-16 	 35935	 35818 ns/op	4500 gas/op	 56.1 mgas/s	2.87 s/op	4112 B/op	53 allocs/op
BenchmarkPrecompiledBLS12381G2Add/matter_g2_add_26-Gas=4500-16 	 31420	 38126 ns/op	4500 gas/op	 71.2 mgas/s	1.98 s/op	4112 B/op	53 allocs/op
BenchmarkPrecompiledBLS12381G2Mul/matter_g2_mul_66-Gas=55000-16	1342	901019 ns/op	 55000 gas/op	 34.9 mgas/s	2.09 s/op	3120 B/op	39 allocs/op
BenchmarkPrecompiledBLS12381G2Mul/matter_g2_mul_67-Gas=55000-16	1376	872557 ns/op	 55000 gas/op	 37.4 mgas/s	2.01 s/op	3120 B/op	39 allocs/op
BenchmarkPrecompiledBLS12381G2MultiExp/matter_g2_multiexp_4-Gas=293920-16	 118	10257496 ns/op	293920 gas/op	 16.2 mgas/s	2.10 s/op	333936 B/op	3824 allocs/op
BenchmarkPrecompiledBLS12381G2MultiExp/matter_g2_multiexp_5-Gas=293920-16	 100	10739723 ns/op	293920 gas/op	 39.2 mgas/s	0.740 s/op	334065 B/op	3826 allocs/op
BenchmarkPrecompiledBLS12381Pairing/matter_pairing_6-Gas=138000-16	 369	 3125833 ns/op	138000 gas/op	 32.6 mgas/s	1.53 s/op	 34256 B/op	85 allocs/op
BenchmarkPrecompiledBLS12381Pairing/matter_pairing_7-Gas=138000-16	 360	 3261067 ns/op	138000 gas/op	 28.2 mgas/s	1.74 s/op	 34256 B/op	85 allocs/op
BenchmarkPrecompiledBLS12381MapG1/matter_fp_to_g1_2-Gas=5500-16	5875	196794 ns/op	5500 gas/op	 20.5 mgas/s	1.56 s/op	1328 B/op	23 allocs/op
BenchmarkPrecompiledBLS12381MapG1/matter_fp_to_g1_3-Gas=5500-16	5568	191560 ns/op	5500 gas/op	 45.0 mgas/s	0.666 s/op	1328 B/op	23 allocs/op
BenchmarkPrecompiledBLS12381MapG2/matter_fp2_to_g2_13-Gas=110000-16 	 418	 2586281 ns/op	110000 gas/op	 55.5 mgas/s	0.811 s/op	3248 B/op	37 allocs/op
BenchmarkPrecompiledBLS12381MapG2/matter_fp2_to_g2_14-Gas=110000-16 	 471	 2547473 ns/op	110000 gas/op	 25.5 mgas/s	2.00 s/op	3248 B/op	37 allocs/op
BenchmarkPrecompiledBLS12381G1MultiExpWorstCase/WorstCaseG1-Gas=11726208-16	2	 595918741 ns/op	11726208 gas/op	 12.0 mgas/s	1.92 s/op	31259100 B/op	770518 allocs/op
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment