Skip to content

Instantly share code, notes, and snippets.

View kilink's full-sized avatar

Patrick Strawderman kilink

  • Netflix
  • San Francisco Bay Area
View GitHub Profile
@kilink
kilink / GzipInputStreamBenchmark.java
Created January 6, 2026 17:16
JMH benchmark demonstrating performance regression since JDK 23
package net.kilink.benchmark;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Level;
import org.openjdk.jmh.annotations.Mode;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.State;
import java.io.ByteArrayInputStream;