mirror of
https://github.com/status-im/c-kzg-4844.git
synced 2025-02-17 04:27:08 +00:00
enhancing the performance test
This commit is contained in:
parent
73bba9ef91
commit
b77bd70817
@ -7,7 +7,12 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
testImplementation("org.junit.jupiter:junit-jupiter:5.9.1")
|
|
||||||
|
def junitVersion = "5.9.1"
|
||||||
|
|
||||||
|
testImplementation("org.junit.jupiter:junit-jupiter:${junitVersion}")
|
||||||
|
testImplementation("org.junit.jupiter:junit-jupiter-params:${junitVersion}")
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
test {
|
test {
|
||||||
|
@ -11,6 +11,8 @@ import java.util.Random;
|
|||||||
import java.util.stream.IntStream;
|
import java.util.stream.IntStream;
|
||||||
import org.junit.jupiter.api.Disabled;
|
import org.junit.jupiter.api.Disabled;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
import org.junit.jupiter.params.ParameterizedTest;
|
||||||
|
import org.junit.jupiter.params.provider.ValueSource;
|
||||||
|
|
||||||
public class CKZg4844JNITest {
|
public class CKZg4844JNITest {
|
||||||
|
|
||||||
@ -65,13 +67,12 @@ public class CKZg4844JNITest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Disabled("Use for manually testing performance.")
|
@Disabled("Use for manually testing performance.")
|
||||||
@Test
|
@ParameterizedTest
|
||||||
public void testPerformance() {
|
@ValueSource(ints = {1, 10, 100, 1000})
|
||||||
|
public void testPerformance(final int count) {
|
||||||
|
|
||||||
loadTrustedSetup();
|
loadTrustedSetup();
|
||||||
|
|
||||||
final int count = 100;
|
|
||||||
|
|
||||||
final byte[] blobs = createRandomBlobs(count);
|
final byte[] blobs = createRandomBlobs(count);
|
||||||
final byte[] commitments = getCommitmentsForBlobs(blobs, count);
|
final byte[] commitments = getCommitmentsForBlobs(blobs, count);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user