diff --git a/message-encoding/build.gradle b/message-encoding/build.gradle index 299be8cd..71daf539 100644 --- a/message-encoding/build.gradle +++ b/message-encoding/build.gradle @@ -105,6 +105,8 @@ dependencies { // jmh test dependencies + jmhTestImplementation project(path: ':shared', configuration: 'sharedTestSupport') + jmhTestImplementation 'org.openjdk.jmh:jmh-core:1.37' jmhTestImplementation 'net.i2p.crypto:eddsa:0.3.0' jmhTestImplementation 'org.bitcoinj:bitcoinj-core:0.16.3' diff --git a/message-encoding/src/jmh-test/java/com/lmax/solana4j/encoding/EddsaPointOnCurveBenchmark.java b/message-encoding/src/jmh-test/java/com/lmax/solana4j/encoding/EddsaPointOnCurveBenchmark.java index cbbb02af..0e9ad19b 100644 --- a/message-encoding/src/jmh-test/java/com/lmax/solana4j/encoding/EddsaPointOnCurveBenchmark.java +++ b/message-encoding/src/jmh-test/java/com/lmax/solana4j/encoding/EddsaPointOnCurveBenchmark.java @@ -1,6 +1,6 @@ package com.lmax.solana4j.encoding; -import com.lmax.solana4j.domain.TestKeyPairGenerator; +import com.lmax.solana4j.domain.KeyPairGenerator; import net.i2p.crypto.eddsa.math.GroupElement; import org.openjdk.jmh.annotations.Benchmark; import org.openjdk.jmh.annotations.BenchmarkMode; @@ -35,7 +35,7 @@ public class EddsaPointOnCurveBenchmark 4, 8 }; - private static final byte[] POINT_ON_CURVE = TestKeyPairGenerator.generateTestKeyPair().getPublicKeyBytes(); + private static final byte[] POINT_ON_CURVE = KeyPairGenerator.generateKeyPair().getPublicKey(); @Benchmark public void pointOnCurveSolana4jImplementation(final Blackhole bh)