Skip to content

Commit 820cdb8

Browse files
authored
Merge pull request #59 from Chessray/eb/ffp-poc-java25
Update for FFM API with versions for Java 21 and Java 25.
2 parents 7d04c3e + abb678d commit 820cdb8

35 files changed

Lines changed: 1825 additions & 508 deletions

jmh_full_array_from_native.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"benchmark": "ByteArrayFromNativeBenchmark",
3+
"jvmargs": ["Xmx4G", "XX:ErrorFile=./results/hs_err_pid%p.log", "XX:+HeapDumpOnOutOfMemoryError"],
4+
"params": {
5+
"valueSize": [10, 50, 512, 1024, 4096, 8192, 16384, 32768, 65536],
6+
"cacheMB": [1],
7+
"checksum": ["none", "copyout"]
8+
},
9+
"options": {
10+
"batchsize": 1,
11+
"warmupiterations": 20,
12+
"warmuptime": "50ms",
13+
"iterations": 50,
14+
"time": "500ms"
15+
},
16+
"result.path": "./results",
17+
"java.library.path": "target/jni-benchmarks-1.0.1-SNAPSHOT-application/jni-benchmarks-1.0.1-SNAPSHOT/lib",
18+
"jar": "target/jni-benchmarks-1.0.1-SNAPSHOT-benchmarks.nar"
19+
}

jmh_full_array_to_native.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"benchmark": "ByteArrayToNativeBenchmark",
3+
"jvmargs": ["Xmx4G", "XX:ErrorFile=./results/hs_err_pid%p.log", "XX:+HeapDumpOnOutOfMemoryError"],
4+
"params": {
5+
"keySize": [38, 128, 512],
6+
"cacheMB": [1],
7+
"checksum": ["none", "copyout"]
8+
},
9+
"options": {
10+
"batchsize": 1,
11+
"warmupiterations": 20,
12+
"warmuptime": "50ms",
13+
"iterations": 50,
14+
"time": "500ms"
15+
},
16+
"result.path": "./results",
17+
"java.library.path": "target/jni-benchmarks-1.0.1-SNAPSHOT-application/jni-benchmarks-1.0.1-SNAPSHOT/lib",
18+
"jar": "target/jni-benchmarks-1.0.1-SNAPSHOT-benchmarks.nar"
19+
}

jmh_full_get_java21.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"benchmark": "GetJNIBenchmark",
2+
"benchmark": "GetJNIBenchmarkJava21",
33
"jvmargs": ["Xmx4G", "XX:ErrorFile=./results/hs_err_pid%p.log", "XX:+HeapDumpOnOutOfMemoryError", "-enable-preview"],
44
"params": {
55
"valueSize": [10, 50, 512, 1024, 4096, 8192, 16384, 32768, 65536],

jmh_full_put_java21.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"benchmark": "PutJNIBenchmark",
2+
"benchmark": "PutJNIBenchmarkJava21",
33
"jvmargs": ["Xmx4G", "XX:ErrorFile=./results/hs_err_pid%p.log", "XX:+HeapDumpOnOutOfMemoryError", "-enable-preview"],
44
"params": {
55
"valueSize": [10, 50, 512, 1024, 4096, 8192, 16384, 32768, 65536],

jmh_plot_array_to_native.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"plots": [
3+
{
4+
"xaxisparam": {
5+
"name": "keySize"
6+
},
7+
"label": "all"
8+
}
9+
],
10+
"result.path": "./analysis/testplots"
11+
}

jmh_run_array_from_native.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"help": false,
3+
"benchmark": "ByteArrayFromNativeBenchmark",
4+
"jvmargs": ["Xmx24G", "XX:+HeapDumpOnOutOfMemoryError"],
5+
"params": {
6+
"valueSize": [50, 4096],
7+
"cacheMB": [1],
8+
"checksum": ["none"]
9+
},
10+
# "flags": ["lprof"],
11+
"options": {
12+
"batchsize": 2,
13+
"warmupiterations": 1,
14+
"warmuptime": "10us",
15+
"iterations": 1,
16+
"time": "10us"
17+
},
18+
"result.path": "./results",
19+
"java.library.path": "target/jni-benchmarks-1.0.1-SNAPSHOT-application/jni-benchmarks-1.0.1-SNAPSHOT/lib",
20+
"jar": "target/jni-benchmarks-1.0.1-SNAPSHOT-benchmarks.nar"
21+
}

jmh_run_array_to_native.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"help": false,
3+
"benchmark": "ByteArrayToNativeBenchmark",
4+
"jvmargs": ["Xmx24G", "XX:+HeapDumpOnOutOfMemoryError"],
5+
"params": {
6+
"valueSize": [50, 4096],
7+
"cacheMB": [1],
8+
"checksum": ["none"]
9+
},
10+
# "flags": ["lprof"],
11+
"options": {
12+
"batchsize": 2,
13+
"warmupiterations": 1,
14+
"warmuptime": "10us",
15+
"iterations": 1,
16+
"time": "10us"
17+
},
18+
"result.path": "./results",
19+
"java.library.path": "target/jni-benchmarks-1.0.1-SNAPSHOT-application/jni-benchmarks-1.0.1-SNAPSHOT/lib",
20+
"jar": "target/jni-benchmarks-1.0.1-SNAPSHOT-benchmarks.nar"
21+
}

jmh_small_get_java21.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"benchmark": "GetJNIBenchmark",
2+
"benchmark": "GetJNIBenchmarkJava21",
33
"jvmargs": ["Xmx4G", "XX:ErrorFile=./results/hs_err_pid%p.log", "XX:+HeapDumpOnOutOfMemoryError", "-enable-preview"],
44
"params": {
55
"valueSize": [10, 50, 512, 1024, 4096, 8192, 16384, 32768, 65536],

jmh_small_put_java21.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"benchmark": "PutJNIBenchmark",
2+
"benchmark": "PutJNIBenchmarkJava21",
33
"jvmargs": ["Xmx4G", "XX:ErrorFile=./results/hs_err_pid%p.log", "XX:+HeapDumpOnOutOfMemoryError", "-enable-preview"],
44
"params": {
55
"valueSize": [10, 50, 512, 1024, 4096, 8192, 16384, 32768, 65536],

jmh_tiny_array_from_native.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"benchmark": "ByteArrayFromNativeBenchmark",
3+
"jvmargs": ["Xmx4G", "XX:ErrorFile=./results/hs_err_pid%p.log", "XX:+HeapDumpOnOutOfMemoryError"],
4+
"params": {
5+
"valueSize": [50, 1024, 4096, 16384],
6+
"cacheMB": [1],
7+
"checksum": ["none", "copyout"]
8+
},
9+
"options": {
10+
"batchsize": 1,
11+
"warmupiterations": 5,
12+
"warmuptime": "10ms",
13+
"iterations": 5,
14+
"time": "50ms"
15+
},
16+
"result.path": "./results",
17+
"java.library.path": "target/jni-benchmarks-1.0.1-SNAPSHOT-application/jni-benchmarks-1.0.1-SNAPSHOT/lib",
18+
"jar": "target/jni-benchmarks-1.0.1-SNAPSHOT-benchmarks.nar"
19+
}

0 commit comments

Comments
 (0)