Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.
kzhsw edited this page Feb 11, 2024 · 1 revision

Welcome to the minio-java-jmh wiki!

Benchmark result

Link to original CI log (might expire): https://github.com/kzhsw/minio-java-jmh/actions/runs/7858943309/job/21444487227#step:5:100

# JMH version: 1.33
# VM version: JDK 11.0.22, OpenJDK 64-Bit Server VM, 11.0.22+7
# VM invoker: /usr/lib/jvm/temurin-11-jdk-amd64/bin/java
# VM options: <none>
# Blackhole mode: full + dont-inline hint (default, use -Djmh.blackhole.autoDetect=true to auto-detect)
# Warmup: 5 iterations, 1 s each
# Measurement: 5 iterations, 2 s each, 2000 calls per op
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Average time, time/op
# Benchmark: kzhsw.S3EscaperBenchmark.benchmarkEncode
# Run progress: 0.00% complete, ETA 00:01:00
# Fork: 1 of 2
# Warmup Iteration   1: 50417.331 ns/op
# Warmup Iteration   2: 41582.899 ns/op
# Warmup Iteration   3: 40636.249 ns/op
# Warmup Iteration   4: 40419.525 ns/op
# Warmup Iteration   5: 40488.732 ns/op
Iteration   1: 80618284.355 ns/op
Iteration   2: 80261663.256 ns/op
Iteration   3: 80387816.731 ns/op
Iteration   4: 80172644.167 ns/op
Iteration   5: 80510839.760 ns/op
# Run progress: 25.00% complete, ETA 00:00:46
# Fork: 2 of 2
# Warmup Iteration   1: 70827.249 ns/op
# Warmup Iteration   2: 63641.913 ns/op
# Warmup Iteration   3: 62373.879 ns/op
# Warmup Iteration   4: 62238.509 ns/op
# Warmup Iteration   5: 62318.315 ns/op
Iteration   1: 124821822.397 ns/op
Iteration   2: 124656156.080 ns/op
Iteration   3: 124447897.216 ns/op
Iteration   4: 124400392.064 ns/op
Iteration   5: 124757023.109 ns/op
Result "kzhsw.S3EscaperBenchmark.benchmarkEncode":
  102503453.914 ±(99.9%) 35241401.623 ns/op [Average]
  (min, avg, max) = (80172644.167, 102503453.914, 124821822.397), stdev = 23310005.164
  CI (99.9%): [67262052.290, 137744855.537] (assumes normal distribution)
# JMH version: 1.33
# VM version: JDK 11.0.22, OpenJDK 64-Bit Server VM, 11.0.22+7
# VM invoker: /usr/lib/jvm/temurin-11-jdk-amd64/bin/java
# VM options: <none>
# Blackhole mode: full + dont-inline hint (default, use -Djmh.blackhole.autoDetect=true to auto-detect)
# Warmup: 5 iterations, 1 s each
# Measurement: 5 iterations, 2 s each, 2000 calls per op
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Average time, time/op
# Benchmark: kzhsw.S3EscaperBenchmark.benchmarkEncodeOptimized
# Run progress: 50.00% complete, ETA 00:00:30
# Fork: 1 of 2
# Warmup Iteration   1: 3800.832 ns/op
# Warmup Iteration   2: 3296.557 ns/op
# Warmup Iteration   3: 3206.889 ns/op
# Warmup Iteration   4: 3210.149 ns/op
# Warmup Iteration   5: 3209.802 ns/op
Iteration   1: 6416408.685 ns/op
Iteration   2: 6425386.118 ns/op
Iteration   3: 6401038.510 ns/op
Iteration   4: 6447764.609 ns/op
Iteration   5: 6415809.963 ns/op
# Run progress: 75.00% complete, ETA 00:00:15
# Fork: 2 of 2
# Warmup Iteration   1: 3747.495 ns/op
# Warmup Iteration   2: 3232.416 ns/op
# Warmup Iteration   3: 3168.061 ns/op
# Warmup Iteration   4: 3168.098 ns/op
# Warmup Iteration   5: 3165.689 ns/op
Iteration   1: 6328161.983 ns/op
Iteration   2: 6320724.009 ns/op
Iteration   3: 6325907.051 ns/op
Iteration   4: 6320693.697 ns/op
Iteration   5: 6332446.400 ns/op
Result "kzhsw.S3EscaperBenchmark.benchmarkEncodeOptimized":
  6373434.102 ±(99.9%) 78359.093 ns/op [Average]
  (min, avg, max) = (6320693.697, 6373434.102, 6447764.609), stdev = 51829.688
  CI (99.9%): [6295075.010, 6451793.195] (assumes normal distribution)
# Run complete. Total time: 00:01:01
REMEMBER: The numbers below are just data. To gain reusable insights, you need to follow up on
why the numbers are the way they are. Use profilers (see -prof, -lprof), design factorial
experiments, perform baseline and negative tests that provide experimental control, make sure
the benchmarking environment is safe on JVM/OS/HW level, ask for reviews from the domain experts.
Do not assume the numbers tell you what you want them to tell.
Benchmark                                    Mode  Cnt          Score          Error  Units
S3EscaperBenchmark.benchmarkEncode           avgt   10  102503453.914 ± 35241401.623  ns/op
S3EscaperBenchmark.benchmarkEncodeOptimized  avgt   10    6373434.102 ±    78359.093  ns/op
Clone this wiki locally