Patch for concurrent iterator & others (onto v1.11.6) #386

Closed
roysc wants to merge 1565 commits from v1.11.6-statediff-v5 into master
2 changed files with 4 additions and 2 deletions
Showing only changes of commit faff980d97 - Show all commits

View File

@ -262,8 +262,9 @@ func BenchmarkG1Add(t *testing.B) {
}
func BenchmarkG1Mul(t *testing.B) {
worstCaseScalar, _ := new(big.Int).SetString("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", 16)
g1 := NewG1()
a, e, c := g1.rand(), q, PointG1{}
a, e, c := g1.rand(), worstCaseScalar, PointG1{}
t.ResetTimer()
for i := 0; i < t.N; i++ {
g1.MulScalar(&c, a, e)

View File

@ -265,8 +265,9 @@ func BenchmarkG2Add(t *testing.B) {
}
func BenchmarkG2Mul(t *testing.B) {
worstCaseScalar, _ := new(big.Int).SetString("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", 16)
g2 := NewG2()
a, e, c := g2.rand(), q, PointG2{}
a, e, c := g2.rand(), worstCaseScalar, PointG2{}
t.ResetTimer()
for i := 0; i < t.N; i++ {
g2.MulScalar(&c, a, e)