Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
-----
ALL
Run Name Cycle samples Wall time (ms) All Wall time (ms) CPU(ms) Idle time (ms) Allocated(MBs)
before-pr 1 100 5,440.86 [-8.54% +228.46%] 5,440.86 [-8.54% +228.46%] 5,390.40 [-8.89% +223.74%] 0.00 [ NaN% NaN%] 1,757.10 [-0.21% +6.06%]
before-pr 2 100 5,187.74 [-9.02% +297.94%] 5,187.74 [-9.02% +297.94%] 5,126.86 [-9.20% +291.02%] 0.00 [ NaN% NaN%] 1,744.44 [-0.30% +11.66%]
before-pr 3 100 5,264.06 [-10.20% +294.05%] 5,264.06 [-10.20% +294.05%] 5,202.24 [-10.25% +287.33%] 0.00 [ NaN% NaN%] 1,738.22 [-0.23% +10.45%]
before-pr 4 100 5,245.32 [-10.17% +275.29%] 5,245.32 [-10.17% +275.29%] 5,189.51 [-10.82% +269.07%] 0.00 [ NaN% NaN%] 1,732.76 [-0.26% +11.49%]
before-pr 5 100 5,308.76 [-8.87% +277.87%] 5,308.76 [-8.87% +277.87%] 5,257.63 [-9.14% +272.28%] 0.00 [ NaN% NaN%] 1,752.85 [-0.23% +
This file has been truncated, but you can view the full file.
-----
ALL
Run Name Cycle samples Wall time (ms) All Wall time (ms) CPU(ms) Idle time (ms) Allocated(MBs)
baseline 1 100 7,164.24 [-14.72% +332.08%] 7,164.24 [-14.72% +332.08%] 7,060.81 [-14.37% +316.03%] 0.00 [ NaN% NaN%] 1,323.00 [-7.44% +12.12%]
baseline 2 100 7,140.09 [-14.59% +332.66%] 7,140.09 [-14.59% +332.66%] 7,040.62 [-14.13% +316.99%] 0.00 [ NaN% NaN%] 1,318.61 [-7.11% +12.09%]
baseline 3 100 7,144.54 [-14.63% +345.75%] 7,144.54 [-14.63% +345.75%] 7,045.99 [-14.41% +328.20%] 0.00 [ NaN% NaN%] 1,319.55 [-7.29% +11.99%]
baseline 4 100 7,156.36 [-14.72% +337.97%] 7,156.36 [-14.72% +337.97%] 7,061.77 [-14.60% +321.49%] 0.00 [ NaN% NaN%] 1,317.85 [-7.33% +12.05%]
baseline 5 100 7,159.47 [-13.97% +322.39%] 7,159.47 [-13.97% +322.39%] 7,075.02 [-13.88% +307.46%] 0.00 [ NaN% NaN%] 1,317.41 [
package miketest.java;
import org.openjdk.jmh.annotations.*;
import org.openjdk.jmh.infra.Blackhole;
@State(Scope.Benchmark)
@Warmup(iterations = 5)
@Measurement(iterations = 5)
@Fork(2)
public class TestJava {
This file has been truncated, but you can view the full file.
ALL
Run Name Cycle samples Wall time (ms) All Wall time (ms) CPU(ms) Idle time (ms) Allocated(MBs)
origin_mike_2.12.x_rangepos_pr-base-0 1 100 8,328.08 [-17.27% +309.59%] 8,328.08 [-17.27% +309.59%] 8,127.85 [-16.39% +288.70%] 0.00 [ NaN% NaN%] 1,744.37 [-5.59% +9.17%]
origin_mike_2.12.x_rangepos_pr-base-0 2 100 8,322.19 [-15.33% +305.16%] 8,322.19 [-15.33% +305.16%] 8,139.53 [-14.97% +287.96%] 0.00 [ NaN% NaN%] 1,730.10 [-5.49% +10.23%]
origin_mike_2.12.x_rangepos_pr-base-0 3 100 8,913.63 [-21.46% +360.91%] 8,913.63 [-21.46% +360.91%] 8,492.68 [-19.42% +299.05%] 0.00 [ NaN% NaN%] 1,722.93 [-5.77% +9.43%]
origin_mike_2.12.x_rangepos_pr-1=caaf690044a4b37f74a36f0cb4d9853e1bdaaba1 1 100 7,708.13 [-14.32% +306.06%] 7,708.13 [-14.32% +306.06%] 7,562.05 [-14.47% +290.11%] 0.00 [ NaN% NaN%] 1,447.54 [-6.83% +11.43%]
origin_mike_2.12.x_rangepos_pr-1=caaf690044a4b37f74a36f0cb4d9853e1bdaaba1 2
after 0 best 40%, phase typer
Run Name Cycle samples Wall time (ms) All Wall time (ms) CPU(ms) Idle time (ms) Allocated(MBs)
origin_mike_2.12.x_rangepos-base-0 1 40 2,096.63 [-2.65% +2.69%] 2,096.63 [-2.65% +2.69%] 2,097.23 [-2.44% +2.80%] 0.00 [ NaN% NaN%] 546.66 [-0.00% +0.00%]
origin_mike_2.12.x_rangepos-base-0 2 40 2,123.65 [-1.96% +1.38%] 2,123.65 [-1.96% +1.38%] 2,124.20 [-2.93% +1.50%] 0.00 [ NaN% NaN%] 549.50 [-0.00% +0.00%]
origin_mike_2.12.x_rangepos-base-0 3 40 2,144.43 [-1.47% +1.61%] 2,144.43 [-1.47% +1.61%] 2,143.35 [-1.60% +1.29%] 0.00 [ NaN% NaN%] 544.52 [-0.00% +0.00%]
origin_mike_2.12.x_rangepos-1=9574775792cd9ce63e69a0556c78db8acef0a0c1 1 40 164,341.58 [-0.36% +0.23%] 164,341.58 [-0.36% +0.23%] 163,646.43 [-0.39% +0.22%] 0.00 [ NaN% NaN%] 186,760.27 [-0.00% +0.00%]
origin_mike_2.12.x_rangepos-1=9574775792cd9ce63e69a0556c78db8acef0a0c1 2 40 184
-----
ALL
Run Name Cycle samples Wall time (ms) All Wall time (ms) CPU(ms) Idle time (ms) Allocated(MBs)
origin_mike_2.12.x_rangepos-base-0 1 100 8,475.89 [-18.22% +364.72%] 8,475.89 [-18.22% +364.72%] 8,206.58 [-17.57% +320.00%] 0.00 [ NaN% NaN%] 1,724.86 [-5.67% +10.46%]
origin_mike_2.12.x_rangepos-base-0 2 100 7,896.71 [-13.31% +330.09%] 7,896.71 [-13.31% +330.09%] 7,743.98 [-13.04% +315.43%] 0.00 [ NaN% NaN%] 1,738.49 [-5.61% +9.21%]
origin_mike_2.12.x_rangepos-base-0 3 100 7,933.47 [-13.97% +316.12%] 7,933.47 [-13.97% +316.12%] 7,760.22 [-13.43% +304.71%] 0.00 [ NaN% NaN%] 1,727.58 [-5.63% +9.91%]
origin_mike_2.12.x_rangepos-1=9574775792cd9ce63e69a0556c78db8acef0a0c1 1 100 171,199.93 [-1.66% +17.70%] 171,199.93 [-1.66% +17.70%] 170,450.37 [-1.64% +16.16%] 0.00 [ NaN% NaN%] 187,935.09 [-0.05% +0.09%]
origin_mike_2.12.x_rangepos-1=9574775792cd9ce63e69a0556c78db8acef0a0c1 2 100 1
@mkeskells
mkeskells / final results
Last active July 27, 2018 11:13
vector benchmark
[info]
[info] Benchmark (size) Mode Cnt Score Error Units
[info] VectorIterationBenchmark.apply 0 avgt 20 0.451 ▒ 0.038 ns/op
[info] VectorIterationBenchmark.apply 1 avgt 20 7.712 ▒ 1.764 ns/op
[info] VectorIterationBenchmark.apply 2 avgt 20 16.086 ▒ 4.513 ns/op
[info] VectorIterationBenchmark.apply 3 avgt 20 23.881 ▒ 8.155 ns/op
[info] VectorIterationBenchmark.apply 4 avgt 20 25.429 ▒ 2.693 ns/op
[info] VectorIterationBenchmark.apply 6 avgt 20 48.937 ▒ 13.691 ns/op
[info] VectorIterationBenchmark.apply 8 avgt 20 55.680 ▒ 12.388 ns/op
@mkeskells
mkeskells / gist:d03d7e0e208a489178e9a1f299688ad0
Created July 27, 2018 11:25
vector initial benchmark with less data points
[info] Benchmark (size) Mode Cnt Score Error Units
[info] VectorIterationBenchmark.apply 0 avgt 20 0.434 ▒ 0.011 ns/op
[info] VectorIterationBenchmark.apply 1 avgt 20 6.606 ▒ 0.227 ns/op
[info] VectorIterationBenchmark.apply 2 avgt 20 12.475 ▒ 0.328 ns/op
[info] VectorIterationBenchmark.apply 3 avgt 20 18.695 ▒ 0.657 ns/op
[info] VectorIterationBenchmark.apply 4 avgt 20 24.225 ▒ 0.718 ns/op
[info] VectorIterationBenchmark.apply 6 avgt 20 36.521 ▒ 0.755 ns/op
[info] VectorIterationBenchmark.apply 8 avgt 20 47.938 ▒ 0.970 ns/op
[info] VectorIterationBenchmark.apply 10 avgt 20 59.623 ▒ 1.228 ns/op
package scala.collection
import java.util.concurrent.TimeUnit
import org.openjdk.jmh.annotations._
@BenchmarkMode(Array(Mode.AverageTime))
@Fork(20)
@Warmup(iterations = 10)
@Measurement(iterations = 20)
/*
* Scala (https://www.scala-lang.org)
*
* Copyright EPFL and Lightbend, Inc.
*
* Licensed under Apache License 2.0
* (http://www.apache.org/licenses/LICENSE-2.0).
*
* See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.