Skip to content

Commit

Permalink
perf: parallelize testcase testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ivokub committed Jan 16, 2025
1 parent 5150b25 commit cc93af0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions prover/zkevm/prover/ecpair/ecpair_with_circuit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import (
"path/filepath"
"strings"
"testing"

"github.com/consensys/linea-monorepo/prover/utils/parallel"
)

func TestPairingDataCircuit(t *testing.T) {
Expand Down Expand Up @@ -40,7 +42,9 @@ func TestGeneratedData(t *testing.T) {
}
return nil
})
for _, tc := range generatedData {
testModule(t, tc, true, true, true, true)
}
parallel.Execute(len(generatedData), func(start, end int) {
for i := start; i < end; i++ {
testModule(t, generatedData[i], true, true, true, true)
}
})
}

0 comments on commit cc93af0

Please sign in to comment.