Skip to content

Instantly share code, notes, and snippets.

View carterkozak's full-sized avatar

Carter Kozak carterkozak

View GitHub Profile
@carterkozak
carterkozak / 1-jmh-result-before.json
Last active April 26, 2023 03:21
jackson-core#995 benchmarks
[
{
"jmhVersion" : "1.27",
"benchmark" : "com.fasterxml.jackson.perf.json.JsonNoCanonicalizeReadVanilla.readCurrencyPojoDefault",
"mode" : "thrpt",
"threads" : 8,
"forks" : 5,
"jvm" : "/home/ckozak/amazon-corretto-17.0.7.7.1-linux-x64/bin/java",
"jvmArgs" : [
"-Xmx256m"
@carterkozak
carterkozak / jmh-result.json
Created April 18, 2023 20:31
JsonArbitraryFieldNameBenchmark Results
[
{
"jmhVersion" : "1.27",
"benchmark" : "com.fasterxml.jackson.perf.json.JsonArbitraryFieldNameBenchmark.parse",
"mode" : "avgt",
"threads" : 28,
"forks" : 1,
"jvm" : "/home/ckozak/.gradle/gradle-jdks/amazon-corretto-17.0.6.10.1-b1140c6c39c37314/bin/java",
"jvmArgs" : [
"-Xmx256m"
@carterkozak
carterkozak / pfsense-wiki-page.patch
Created December 14, 2022 19:37
nextdns wiki pfsense proposal
From 8dbce49f21852614409fcac130eaf45cd6851d43 Mon Sep 17 00:00:00 2001
From: Carter Kozak <ckozak@ckozak.net>
Date: Wed, 14 Dec 2022 14:05:43 -0500
Subject: [PATCH] Update the `pfSense` wiki page with documentation matching
the site
The installer doesn't work out of the box (port conflict with the
default DNS resolver), and has known issues (dhcp leases page
doesn't load). I suspect these could be resolved either in the
installer, or through documentation, however I believe it's
@carterkozak
carterkozak / replay.log
Created August 4, 2022 19:03
JDK-8291665 replay log
JvmtiExport can_access_local_variables 0
JvmtiExport can_hotswap_or_post_breakpoint 1
JvmtiExport can_post_on_exceptions 0
# 264 ciObject found
instanceKlass java/util/stream/Sink$ChainedLong
instanceKlass java/util/function/LongFunction
instanceKlass java/util/function/ObjLongConsumer
instanceKlass java/util/Spliterators$LongArraySpliterator
instanceKlass java/util/stream/AbstractSpinedBuffer
instanceKlass java/util/stream/Node$Builder$OfLong
@carterkozak
carterkozak / logback-perf.md
Created August 20, 2021 15:32
logback performance benchmark results

1 fork 3x 3 second warmup, 3x 3 second measurement

14c/28t system performance cpu frequency governor, shouldn't be any thermal throttling

VM version: JDK 16.0.2, OpenJDK 64-Bit Server VM, 16.0.2+7 (zulu16.32.15-ca-jdk16.0.2-linux_x64)

1 (producer) thread:

run 1

[
{
"jmhVersion" : "1.23",
"benchmark" : "net.ckozak.ExecutorBenchmarks.benchmarkSubmit",
"mode" : "avgt",
"threads" : 32,
"forks" : 1,
"jvm" : "/usr/lib/jvm/java-11-openjdk-amd64/bin/java",
"jvmArgs" : [
"-Xmx2g",
[
{
"jmhVersion" : "1.23",
"benchmark" : "net.ckozak.ExecutorBenchmarks.benchmarkSubmit",
"mode" : "avgt",
"threads" : 32,
"forks" : 1,
"jvm" : "/usr/lib/jvm/java-11-openjdk-amd64/bin/java",
"jvmArgs" : [
"-Xmx2g",
@carterkozak
carterkozak / full_benchmarks_jbthr_74_f36a2f543826d760933739cb6b51f63af08c00f9.log
Created April 23, 2020 13:43
full_benchmarks_jbthr_74_f36a2f543826d760933739cb6b51f63af08c00f9.log
Benchmark (burstSize) (cores) (executorThreads) (factory) (spinWaitCompletion) Mode Cnt Score Error Units
ExecutorBenchmarks.benchmarkSubmit 1 1 16,16 LTQ_THREAD_POOL_EXECUTOR false avgt 4 95.017 ± 18.454 us/op
ExecutorBenchmarks.benchmarkSubmit 1 1 16,16 LTQ_THREAD_POOL_EXECUTOR true avgt 4 197.713 ± 103.372 us/op
ExecutorBenchmarks.benchmarkSubmit 1 1 16,16 LBQ_THREAD_POOL_EXECUTOR false avgt 4 94.113 ± 13.669 us/op
ExecutorBenchmarks.benchmarkSubmit 1 1 16,16 LBQ_THREAD_POOL_EXECUTOR true avgt 4 181.114 ± 25.187 us/op
ExecutorBenchmarks.benchmarkSubmit 1 1 16,16 EQE_NO_LOCKS false avgt 4 91.739 ± 0.686 us/op
ExecutorBenchmarks.benchmarkSubmit
This file has been truncated, but you can view the full file.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.openjdk.jmh.util.Utils (file:/home/ckozak/code/jboss-threads-performance/build/distributions/jboss-threads-performance/lib/jmh-core-1.23.jar) to field java.io.PrintStream.charOut
WARNING: Please consider reporting this to the maintainers of org.openjdk.jmh.util.Utils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
# JMH version: 1.23
# VM version: JDK 11.0.7, OpenJDK 64-Bit Server VM, 11.0.7+10-post-Ubuntu-3ubuntu1
# VM invoker: /usr/lib/jvm/java-11-openjdk-amd64/bin/java
# VM options: -Xmx2g -Xms2g -XX:+UseParallelOldGC -XX:-UseBiasedLocking -XX:+UnlockDiagnosticVMOptions -XX:+DebugNonSafepoints
# Warmup: 2 iterations, 7 s each
@carterkozak
carterkozak / jboss-perf-5165fc11077223580fc29d30762fb36da6993886.log
Created April 20, 2020 01:26
Benchmark results for 5165fc11077223580fc29d30762fb36da6993886
This file has been truncated, but you can view the full file.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.openjdk.jmh.util.Utils (file:/home/ckozak/code/jboss-threads-performance/build/distributions/jboss-threads-performance/lib/jmh-core-1.23.jar) to field java.io.PrintStream.charOut
WARNING: Please consider reporting this to the maintainers of org.openjdk.jmh.util.Utils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
# JMH version: 1.23
# VM version: JDK 11.0.7, OpenJDK 64-Bit Server VM, 11.0.7+10-post-Ubuntu-3ubuntu1
# VM invoker: /usr/lib/jvm/java-11-openjdk-amd64/bin/java
# VM options: -Xmx2g -Xms2g -XX:+UseParallelOldGC -XX:-UseBiasedLocking -XX:+UnlockDiagnosticVMOptions -XX:+DebugNonSafepoints
# Warmup: 2 iterations, 7 s each