Skip to content

Commit

Permalink
Fix JMH benchmark broken dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-james committed Jan 2, 2025
1 parent 4ba3fe7 commit b013967
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions message-encoding/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b013967

Please sign in to comment.