Skip to content

Instantly share code, notes, and snippets.

View reflection-peter-vh2mh.json
[
{
"jmhVersion" : "1.29",
"benchmark" : "si.pele.jmh.ReflectionSpeedBenchmark.instanceFieldConst",
"mode" : "avgt",
"threads" : 1,
"forks" : 1,
"jvm" : "/home/peter/work/git/jdk/build/linux-x86_64-server-release/images/jdk/bin/java",
"jvmArgs" : [
],
View reflection-jdk18+9.json
[
{
"jmhVersion" : "1.29",
"benchmark" : "si.pele.jmh.ReflectionSpeedBenchmark.instanceFieldConst",
"mode" : "avgt",
"threads" : 1,
"forks" : 1,
"jvm" : "/home/peter/work/git/jdk/build/linux-x86_64-server-release/images/jdk/bin/java",
"jvmArgs" : [
],
View ReflectionColdstartBenchmark.java
package si.pele.jmh;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Fork;
import org.openjdk.jmh.annotations.Level;
import org.openjdk.jmh.annotations.Mode;
import org.openjdk.jmh.annotations.OutputTimeUnit;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.Setup;
View reflection-peter.json
[
{
"jmhVersion" : "1.29",
"benchmark" : "si.pele.jmh.ReflectionSpeedBenchmark.instanceFieldConst",
"mode" : "avgt",
"threads" : 1,
"forks" : 1,
"jvm" : "/home/peter/work/git/jdk/build/linux-x86_64-server-release/images/jdk/bin/java",
"jvmArgs" : [
],
View reflection-mandy.json
[
{
"jmhVersion" : "1.29",
"benchmark" : "si.pele.jmh.ReflectionSpeedBenchmark.instanceFieldConst",
"mode" : "avgt",
"threads" : 1,
"forks" : 1,
"jvm" : "/home/peter/work/git/jdk/build/linux-x86_64-server-release/images/jdk/bin/java",
"jvmArgs" : [
],
View reflection-jdk16.json
[
{
"jmhVersion" : "1.29",
"benchmark" : "si.pele.jmh.ReflectionSpeedBenchmark.instanceFieldConst",
"mode" : "avgt",
"threads" : 1,
"forks" : 1,
"jvm" : "/usr/lib/jvm/java-16-openjdk-16.0.2.0.7-1.rolling.fc33.x86_64/bin/java",
"jvmArgs" : [
],
View AccessControllerWrapper.java
package security;
import static java.lang.invoke.MethodType.methodType;
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;
import java.lang.reflect.UndeclaredThrowableException;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.Objects;
View jmh-joiner-base.json
[
{
"jmhVersion" : "1.29",
"benchmark" : "si.pele.jmh.StringJoinerBenchmark.join",
"mode" : "avgt",
"threads" : 1,
"forks" : 1,
"jvm" : "/home/peter/work/local/jmh-benchmark/jdk.base/bin/java",
"jvmArgs" : [
"-Xms1g",
View jmh-joiner-base.json
[
{
"jmhVersion" : "1.29",
"benchmark" : "si.pele.jmh.StringJoinerBenchmark.stringJoiner",
"mode" : "avgt",
"threads" : 1,
"forks" : 1,
"jvm" : "/home/peter/work/git/jdk/build/linux-x86_64-server-release/images/jdk/bin/java",
"jvmArgs" : [
"-Xms1g",
View jmh-result-base.json
[
{
"jmhVersion" : "1.29",
"benchmark" : "si.pele.jmh.StringJoinBench.join",
"mode" : "thrpt",
"threads" : 1,
"forks" : 1,
"jvm" : "/home/peter/work/git/jdk/build/linux-x86_64-server-release/images/jdk/bin/java",
"jvmArgs" : [
],