Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am plevart on github.
  • I am peter_levart (https://keybase.io/peter_levart) on keybase.
  • I have a public key ASD1WI8KxQ95Hr9AVglTuhZxaur4U855ycLaguxdZpJedAo

To claim this, I am signing this object:

View ComparatorBenchmark.java
package org.tikv.jmh;
import com.google.protobuf.ByteString;
import java.util.concurrent.ThreadLocalRandom;
import java.util.concurrent.TimeUnit;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Fork;
import org.openjdk.jmh.annotations.Measurement;
import org.openjdk.jmh.annotations.Mode;
View jmh-result-jdk8.json
[
{
"jmhVersion" : "1.29",
"benchmark" : "org.tikv.jmh.ComparatorBenchmark.asReadonlyBuffer",
"mode" : "avgt",
"threads" : 1,
"forks" : 1,
"jvm" : "/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.282.b08-0.fc33.x86_64/jre/bin/java",
"jvmArgs" : [
"-javaagent:/home/peter/.m2/repository/org/jacoco/org.jacoco.agent/0.8.3/org.jacoco.agent-0.8.3-runtime.jar=destfile=/home/peter/work/git/tikv-client-java/target/jacoco.exec"
View jmh-result-jdk11.json
[
{
"jmhVersion" : "1.29",
"benchmark" : "org.tikv.jmh.ComparatorBenchmark.asReadonlyBuffer",
"mode" : "avgt",
"threads" : 1,
"forks" : 1,
"jvm" : "/usr/lib/jvm/java-11-openjdk-11.0.10.0.9-0.fc33.x86_64/bin/java",
"jvmArgs" : [
"-javaagent:/home/peter/.m2/repository/org/jacoco/org.jacoco.agent/0.8.3/org.jacoco.agent-0.8.3-runtime.jar=destfile=/home/peter/work/git/tikv-client-java/target/jacoco.exec"
View StringJoinBench.java
package si.pele.jmh;
/*
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
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" : [
],
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-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 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 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" : [
],