From 2e06fbd409d64a400c19d26d7af383f868e34f11 Mon Sep 17 00:00:00 2001 From: Marius van der Wijden Date: Fri, 19 Apr 2024 13:46:43 +0200 Subject: [PATCH] core/vm: add KZG benchmark (#29583) --- core/vm/contracts_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/vm/contracts_test.go b/core/vm/contracts_test.go index 5c4d2ba61a..fff5c966f3 100644 --- a/core/vm/contracts_test.go +++ b/core/vm/contracts_test.go @@ -316,6 +316,8 @@ func TestPrecompiledBLS12381MapG2(t *testing.T) { testJson("blsMapG2", "f12 func TestPrecompiledPointEvaluation(t *testing.T) { testJson("pointEvaluation", "0a", t) } +func BenchmarkPrecompiledPointEvaluation(b *testing.B) { benchJson("pointEvaluation", "0a", b) } + func BenchmarkPrecompiledBLS12381G1Add(b *testing.B) { benchJson("blsG1Add", "f0a", b) } func BenchmarkPrecompiledBLS12381G1Mul(b *testing.B) { benchJson("blsG1Mul", "f0b", b) } func BenchmarkPrecompiledBLS12381G1MultiExp(b *testing.B) { benchJson("blsG1MultiExp", "f0c", b) }