Created
April 10, 2018 22:45
-
-
Save mkeskells/2ec6f2ec0145af699096a1368d62c962 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | |
public int x = 1; | |
@Benchmark | |
public void inc() { | |
x += 1; | |
} | |
@Benchmark | |
public void inc2() { | |
x++; | |
} | |
public int c = 1000; | |
@Benchmark | |
public void incLocal(Blackhole bh) { | |
int i1 = 0; | |
int i2 = bh.i2; | |
while (i1 < c) { | |
bh.consume(i1); | |
i1 += 1; | |
} | |
} | |
} | |
----------------------------------------------------- | |
package miketest.java; | |
import org.openjdk.jmh.annotations.Benchmark; | |
import org.openjdk.jmh.annotations.Fork; | |
import org.openjdk.jmh.annotations.Measurement; | |
import org.openjdk.jmh.annotations.Warmup; | |
import org.openjdk.jmh.infra.Blackhole; | |
@Warmup(iterations = 5) | |
@Measurement(iterations = 5) | |
@Fork(2) | |
public class TestJava2 { | |
@Benchmark | |
public void inner1(Blackhole bh) { | |
bh.consume(new ChildO1_1().newInner().callInner()); | |
bh.consume(new ChildO1_2().newInner().callInner()); | |
} | |
} | |
class ChildO1_1 extends OuterCA { | |
Inner newInner() { | |
return new Inner(); | |
} | |
int c() { | |
return 1; | |
} | |
} | |
class ChildO1_2 extends OuterCA { | |
Inner newInner() { | |
return new Inner(); | |
} | |
int c() { | |
return 2; | |
} | |
} | |
abstract class OuterCA { | |
abstract int c(); | |
int c1() { | |
return c() + 1; | |
} | |
int c2() { | |
return c() + 1; | |
} | |
int c3() { | |
return c() + 1; | |
} | |
int c4() { | |
return c() + 1; | |
} | |
int c5() { | |
return c() + 1; | |
} | |
class Inner { | |
int callInner() { | |
return c() + c() + c() + c() + c() + c();//c1() + c2() + c3() + c4() + c5();} | |
} | |
} | |
} | |
interface OuterIA { | |
abstract int c(); | |
// int c1() { | |
// return c() + 1; | |
// } | |
// | |
// int c2() { | |
// return c() + 1; | |
// } | |
// | |
// int c3() { | |
// return c() + 1; | |
// } | |
// | |
// int c4() { | |
// return c() + 1; | |
// } | |
// | |
// int c5() { | |
// return c() + 1; | |
// } | |
// class Inner { | |
// int callInner() { | |
// return c() + c() + c() + c() + c() + c();//c1() + c2() + c3() + c4() + c5();} | |
// } | |
// } | |
} | |
-------------------------------------------------------------- | |
package miketest.scala | |
import org.openjdk.jmh.annotations._ | |
import org.openjdk.jmh.infra.Blackhole | |
@State(Scope.Benchmark) | |
@Warmup(iterations = 5) | |
@Measurement(iterations = 5) | |
@Fork(2) | |
class TestScala() { | |
var x = 1 | |
@Benchmark | |
def inc(): Unit = { | |
x += 1 | |
} | |
final var xFinal = 1 | |
@Benchmark | |
def incFinal(): Unit = { | |
xFinal += 1 | |
} | |
final var xPrivate = 1 | |
@Benchmark | |
def incPrivate(): Unit = { | |
xPrivate += 1 | |
} | |
var c = 1000 | |
@Benchmark def incLocal(bh: Blackhole): Unit = { | |
var i1 = 0 | |
val i2 = bh.i2 | |
while ( i1 < c) { | |
bh.consume(i1) | |
i1 += 1 | |
} | |
} | |
} | |
package miketest.scala | |
import org.openjdk.jmh.annotations._ | |
import org.openjdk.jmh.infra.Blackhole | |
@State(Scope.Benchmark) | |
@Warmup(iterations = 5) | |
@Measurement(iterations = 5) | |
@Fork(2) | |
class TestScala() { | |
var x = 1 | |
@Benchmark | |
def inc(): Unit = { | |
x += 1 | |
} | |
final var xFinal = 1 | |
@Benchmark | |
def incFinal(): Unit = { | |
xFinal += 1 | |
} | |
final var xPrivate = 1 | |
@Benchmark | |
def incPrivate(): Unit = { | |
xPrivate += 1 | |
} | |
var c = 1000 | |
@Benchmark def incLocal(bh: Blackhole): Unit = { | |
var i1 = 0 | |
val i2 = bh.i2 | |
while ( i1 < c) { | |
bh.consume(i1) | |
i1 += 1 | |
} | |
} | |
} | |
package miketest.scala | |
import org.openjdk.jmh.annotations._ | |
import org.openjdk.jmh.infra.Blackhole | |
@State(Scope.Benchmark) | |
@Warmup(iterations = 5) | |
@Measurement(iterations = 5) | |
@Fork(2) | |
class TestScala() { | |
var x = 1 | |
@Benchmark | |
def inc(): Unit = { | |
x += 1 | |
} | |
final var xFinal = 1 | |
@Benchmark | |
def incFinal(): Unit = { | |
xFinal += 1 | |
} | |
final var xPrivate = 1 | |
@Benchmark | |
def incPrivate(): Unit = { | |
xPrivate += 1 | |
} | |
var c = 1000 | |
@Benchmark def incLocal(bh: Blackhole): Unit = { | |
var i1 = 0 | |
val i2 = bh.i2 | |
while ( i1 < c) { | |
bh.consume(i1) | |
i1 += 1 | |
} | |
} | |
} | |
package miketest.scala | |
import org.openjdk.jmh.annotations._ | |
import org.openjdk.jmh.infra.Blackhole | |
@State(Scope.Benchmark) | |
@Warmup(iterations = 5) | |
@Measurement(iterations = 5) | |
@Fork(2) | |
class TestScala() { | |
var x = 1 | |
@Benchmark | |
def inc(): Unit = { | |
x += 1 | |
} | |
final var xFinal = 1 | |
@Benchmark | |
def incFinal(): Unit = { | |
xFinal += 1 | |
} | |
final var xPrivate = 1 | |
@Benchmark | |
def incPrivate(): Unit = { | |
xPrivate += 1 | |
} | |
var c = 1000 | |
@Benchmark def incLocal(bh: Blackhole): Unit = { | |
var i1 = 0 | |
val i2 = bh.i2 | |
while ( i1 < c) { | |
bh.consume(i1) | |
i1 += 1 | |
} | |
} | |
} | |
package miketest.scala | |
import org.openjdk.jmh.annotations._ | |
import org.openjdk.jmh.infra.Blackhole | |
@State(Scope.Benchmark) | |
@Warmup(iterations = 5) | |
@Measurement(iterations = 5) | |
@Fork(2) | |
class TestScala() { | |
var x = 1 | |
@Benchmark | |
def inc(): Unit = { | |
x += 1 | |
} | |
final var xFinal = 1 | |
@Benchmark | |
def incFinal(): Unit = { | |
xFinal += 1 | |
} | |
final var xPrivate = 1 | |
@Benchmark | |
def incPrivate(): Unit = { | |
xPrivate += 1 | |
} | |
var c = 1000 | |
@Benchmark def incLocal(bh: Blackhole): Unit = { | |
var i1 = 0 | |
val i2 = bh.i2 | |
while ( i1 < c) { | |
bh.consume(i1) | |
i1 += 1 | |
} | |
} | |
} | |
package miketest.scala | |
import org.openjdk.jmh.annotations._ | |
import org.openjdk.jmh.infra.Blackhole | |
@State(Scope.Benchmark) | |
@Warmup(iterations = 5) | |
@Measurement(iterations = 5) | |
@Fork(2) | |
class TestScala() { | |
var x = 1 | |
@Benchmark | |
def inc(): Unit = { | |
x += 1 | |
} | |
final var xFinal = 1 | |
@Benchmark | |
def incFinal(): Unit = { | |
xFinal += 1 | |
} | |
final var xPrivate = 1 | |
@Benchmark | |
def incPrivate(): Unit = { | |
xPrivate += 1 | |
} | |
var c = 1000 | |
@Benchmark def incLocal(bh: Blackhole): Unit = { | |
var i1 = 0 | |
val i2 = bh.i2 | |
while ( i1 < c) { | |
bh.consume(i1) | |
i1 += 1 | |
} | |
} | |
} | |
package miketest.scala | |
import org.openjdk.jmh.annotations._ | |
import org.openjdk.jmh.infra.Blackhole | |
@State(Scope.Benchmark) | |
@Warmup(iterations = 5) | |
@Measurement(iterations = 5) | |
@Fork(2) | |
class TestScala() { | |
var x = 1 | |
@Benchmark | |
def inc(): Unit = { | |
x += 1 | |
} | |
final var xFinal = 1 | |
@Benchmark | |
def incFinal(): Unit = { | |
xFinal += 1 | |
} | |
final var xPrivate = 1 | |
@Benchmark | |
def incPrivate(): Unit = { | |
xPrivate += 1 | |
} | |
var c = 1000 | |
@Benchmark def incLocal(bh: Blackhole): Unit = { | |
var i1 = 0 | |
val i2 = bh.i2 | |
while ( i1 < c) { | |
bh.consume(i1) | |
i1 += 1 | |
} | |
} | |
} | |
package miketest.scala | |
import org.openjdk.jmh.annotations._ | |
import org.openjdk.jmh.infra.Blackhole | |
@State(Scope.Benchmark) | |
@Warmup(iterations = 5) | |
@Measurement(iterations = 5) | |
@Fork(2) | |
class TestScala() { | |
var x = 1 | |
@Benchmark | |
def inc(): Unit = { | |
x += 1 | |
} | |
final var xFinal = 1 | |
@Benchmark | |
def incFinal(): Unit = { | |
xFinal += 1 | |
} | |
final var xPrivate = 1 | |
@Benchmark | |
def incPrivate(): Unit = { | |
xPrivate += 1 | |
} | |
var c = 1000 | |
@Benchmark def incLocal(bh: Blackhole): Unit = { | |
var i1 = 0 | |
val i2 = bh.i2 | |
while ( i1 < c) { | |
bh.consume(i1) | |
i1 += 1 | |
} | |
} | |
} | |
-------------------------------------------------------------------- | |
package miketest.scala | |
import org.openjdk.jmh.annotations._ | |
import org.openjdk.jmh.infra.Blackhole | |
@Warmup(iterations = 5) | |
@Measurement(iterations = 5) | |
@Fork(2) | |
class TestScala2() { | |
@Benchmark def inner1(bh: Blackhole): Unit = { | |
bh.consume(new ChildO1_1().newInner.callInner) | |
bh.consume(new ChildO1_2().newInner.callInner) | |
} | |
@Benchmark def inner2_1(bh: Blackhole): Unit = { | |
bh.consume(new ChildO2_1().newInner2.callInner1) | |
} | |
@Benchmark def inner2_2(bh: Blackhole): Unit = { | |
bh.consume(new ChildO2_1().newInner2.callInner2) | |
} | |
@Benchmark def inner2_3(bh: Blackhole): Unit = { | |
bh.consume(new ChildO2_1().newInner2.callInner3) | |
} | |
@Benchmark def inner2_4(bh: Blackhole): Unit = { | |
bh.consume(new ChildO2_1().newInner2.callInner4) | |
} | |
} | |
class ChildO1_1 extends OuterA { | |
def newInner = new Inner() | |
override def c: Int = 1 | |
} | |
class ChildO1_2 extends OuterA { | |
def newInner = new Inner() | |
override def c: Int = 2 | |
} | |
abstract class OuterA { | |
def c:Int | |
def c1 = c + 1 | |
def c2 = c + 1 | |
def c3 = c + 1 | |
def c4 = c + 1 | |
def c5 = c + 1 | |
class Inner { | |
def callInner = c+c+c+c+c;//+c1 + c2 + c3 + c4 + c5 | |
} | |
} | |
trait Base { | |
def base: Int | |
} | |
trait A extends Base { | |
def a = 9 | |
} | |
trait B extends Base | |
trait C extends Base | |
trait D extends Base | |
trait E extends Base { | |
self: A with B with C with D => | |
def e:Int = 7 | |
def aFromE = self.a | |
} | |
trait OuterI extends A with B with C with D { | |
myE:E=> | |
def c:Int | |
def c1 = c + 1 | |
def c2 = c + 1 | |
def c3 = c + 1 | |
def c4 = c + 1 | |
def c5 = c + 1 | |
class Inner { | |
def callInner1 = c+c+c+c+c;//+c1 + c2 + c3 + c4 + c5 | |
def callInner2 = base+base+base+base+base;//+c1 + c2 + c3 + c4 + c5 | |
def callInner3 = myE.e;//+c1 + c2 + c3 + c4 + c5 | |
} | |
class Inner2 extends Inner { | |
def callInner1x = c+c+c+c+c;//+c1 + c2 + c3 + c4 + c5 | |
def callInner2x = base+base+base+base+base;//+c1 + c2 + c3 + c4 + c5 | |
def callInner3x = myE.e;//+c1 + c2 + c3 + c4 + c5 | |
def callInner4 = myE.aFromE;//+c1 + c2 + c3 + c4 + c5 | |
} | |
} | |
class ChildO2_1 extends OuterI with E{ | |
def newInner2 = new Inner2() | |
override def c: Int = 1 | |
override def base: Int = c+1 | |
} | |
class ChildO3_2 extends OuterI with E{ | |
def newInner = new Inner() | |
override def c: Int = 2 | |
override def base: Int = c+1 | |
} | |
------------------------------------------------------------------------ | |
[IJ]> jmh:run miketest.* | |
[info] Compiling 1 Scala source to S:\scala\backend\test\benchmarks\target\scala-2.12\classes... | |
Processing 207 classes from S:\scala\backend\test\benchmarks\target\scala-2.12\classes with "reflection" generator | |
Writing out Java source to S:\scala\backend\test\benchmarks\target\scala-2.12\src_managed\jmh and resources to S:\scala\backend\test\benchmarks\target\scala-2.12\resource_managed\jmh | |
[info] Compiling 4 Java sources to S:\scala\backend\test\benchmarks\target\scala-2.12\classes... | |
[info] Running org.openjdk.jmh.Main miketest.* | |
[info] # JMH version: 1.19 | |
[info] # VM version: JDK 1.8.0_131, VM 25.131-b11 | |
[info] # VM invoker: C:\Program Files\Java\jdk1.8.0_131\jre\bin\java.exe | |
[info] # VM options: <none> | |
[info] # Warmup: 5 iterations, 1 s each | |
[info] # Measurement: 5 iterations, 1 s each | |
[info] # Timeout: 10 min per iteration | |
[info] # Threads: 1 thread, will synchronize iterations | |
[info] # Benchmark mode: Throughput, ops/time | |
[info] # Benchmark: miketest.java.TestJava.inc | |
[info] | |
[info] # Run progress: 0.00% complete, ETA 00:04:20 | |
[info] # Fork: 1 of 2 | |
[info] # Warmup Iteration 1: 473516753.015 ops/s | |
[info] # Warmup Iteration 2: 473705073.859 ops/s | |
[info] # Warmup Iteration 3: 478625969.287 ops/s | |
[info] # Warmup Iteration 4: 477823169.401 ops/s | |
[info] # Warmup Iteration 5: 474802774.918 ops/s | |
[info] Iteration 1: 475025846.789 ops/s | |
[info] Iteration 2: 476273732.488 ops/s | |
[info] Iteration 3: 476441813.552 ops/s | |
[info] Iteration 4: 475570106.257 ops/s | |
[info] Iteration 5: 475796519.746 ops/s | |
[info] | |
[info] # Run progress: 3.85% complete, ETA 00:04:23 | |
[info] # Fork: 2 of 2 | |
[info] # Warmup Iteration 1: 476755795.671 ops/s | |
[info] # Warmup Iteration 2: 475481096.607 ops/s | |
[info] # Warmup Iteration 3: 476777213.010 ops/s | |
[info] # Warmup Iteration 4: 476535281.858 ops/s | |
[info] # Warmup Iteration 5: 476213379.106 ops/s | |
[info] Iteration 1: 475786094.483 ops/s | |
[info] Iteration 2: 475089642.646 ops/s | |
[info] Iteration 3: 475147880.760 ops/s | |
[info] Iteration 4: 474493510.080 ops/s | |
[info] Iteration 5: 476478219.015 ops/s | |
[info] | |
[info] | |
[info] Result "miketest.java.TestJava.inc": | |
[info] 475610336.582 ´�¢(99.9%) 1011144.966 ops/s [Average] | |
[info] (min, avg, max) = (474493510.080, 475610336.582, 476478219.015), stdev = 668809.789 | |
[info] CI (99.9%): [474599191.616, 476621481.548] (assumes normal distribution) | |
[info] | |
[info] | |
[info] # JMH version: 1.19 | |
[info] # VM version: JDK 1.8.0_131, VM 25.131-b11 | |
[info] # VM invoker: C:\Program Files\Java\jdk1.8.0_131\jre\bin\java.exe | |
[info] # VM options: <none> | |
[info] # Warmup: 5 iterations, 1 s each | |
[info] # Measurement: 5 iterations, 1 s each | |
[info] # Timeout: 10 min per iteration | |
[info] # Threads: 1 thread, will synchronize iterations | |
[info] # Benchmark mode: Throughput, ops/time | |
[info] # Benchmark: miketest.java.TestJava.inc2 | |
[info] | |
[info] # Run progress: 7.69% complete, ETA 00:04:11 | |
[info] # Fork: 1 of 2 | |
[info] # Warmup Iteration 1: 476658963.347 ops/s | |
[info] # Warmup Iteration 2: 476090969.485 ops/s | |
[info] # Warmup Iteration 3: 476514564.003 ops/s | |
[info] # Warmup Iteration 4: 478540902.191 ops/s | |
[info] # Warmup Iteration 5: 476327969.487 ops/s | |
[info] Iteration 1: 476011552.384 ops/s | |
[info] Iteration 2: 475967636.807 ops/s | |
[info] Iteration 3: 478387343.112 ops/s | |
[info] Iteration 4: 467022518.350 ops/s | |
[info] Iteration 5: 477719230.010 ops/s | |
[info] | |
[info] # Run progress: 11.54% complete, ETA 00:04:00 | |
[info] # Fork: 2 of 2 | |
[info] # Warmup Iteration 1: 475240074.265 ops/s | |
[info] # Warmup Iteration 2: 472803253.143 ops/s | |
[info] # Warmup Iteration 3: 453004157.376 ops/s | |
[info] # Warmup Iteration 4: 476429643.191 ops/s | |
[info] # Warmup Iteration 5: 476996562.800 ops/s | |
[info] Iteration 1: 479693929.946 ops/s | |
[info] Iteration 2: 477244138.926 ops/s | |
[info] Iteration 3: 475247867.319 ops/s | |
[info] Iteration 4: 477830377.235 ops/s | |
[info] Iteration 5: 483997539.006 ops/s | |
[info] | |
[info] | |
[info] Result "miketest.java.TestJava.inc2": | |
[info] 476912213.310 ´�¢(99.9%) 6453736.174 ops/s [Average] | |
[info] (min, avg, max) = (467022518.350, 476912213.310, 483997539.006), stdev = 4268746.889 | |
[info] CI (99.9%): [470458477.136, 483365949.484] (assumes normal distribution) | |
[info] | |
[info] | |
[info] # JMH version: 1.19 | |
[info] # VM version: JDK 1.8.0_131, VM 25.131-b11 | |
[info] # VM invoker: C:\Program Files\Java\jdk1.8.0_131\jre\bin\java.exe | |
[info] # VM options: <none> | |
[info] # Warmup: 5 iterations, 1 s each | |
[info] # Measurement: 5 iterations, 1 s each | |
[info] # Timeout: 10 min per iteration | |
[info] # Threads: 1 thread, will synchronize iterations | |
[info] # Benchmark mode: Throughput, ops/time | |
[info] # Benchmark: miketest.java.TestJava.incLocal | |
[info] | |
[info] # Run progress: 15.38% complete, ETA 00:03:50 | |
[info] # Fork: 1 of 2 | |
[info] # Warmup Iteration 1: 252697.790 ops/s | |
[info] # Warmup Iteration 2: 271582.396 ops/s | |
[info] # Warmup Iteration 3: 341671.531 ops/s | |
[info] # Warmup Iteration 4: 343075.323 ops/s | |
[info] # Warmup Iteration 5: 344181.868 ops/s | |
[info] Iteration 1: 342123.365 ops/s | |
[info] Iteration 2: 340100.524 ops/s | |
[info] Iteration 3: 343060.847 ops/s | |
[info] Iteration 4: 289108.678 ops/s | |
[info] Iteration 5: 113293.043 ops/s | |
[info] | |
[info] # Run progress: 19.23% complete, ETA 00:03:39 | |
[info] # Fork: 2 of 2 | |
[info] # Warmup Iteration 1: 225121.050 ops/s | |
[info] # Warmup Iteration 2: 229875.773 ops/s | |
[info] # Warmup Iteration 3: 294612.431 ops/s | |
[info] # Warmup Iteration 4: 338735.159 ops/s | |
[info] # Warmup Iteration 5: 311416.060 ops/s | |
[info] Iteration 1: 337583.548 ops/s | |
[info] Iteration 2: 330584.200 ops/s | |
[info] Iteration 3: 322502.430 ops/s | |
[info] Iteration 4: 342222.036 ops/s | |
[info] Iteration 5: 339605.669 ops/s | |
[info] | |
[info] | |
[info] Result "miketest.java.TestJava.incLocal": | |
[info] 310018.434 ´�¢(99.9%) 107398.247 ops/s [Average] | |
[info] (min, avg, max) = (113293.043, 310018.434, 343060.847), stdev = 71037.291 | |
[info] CI (99.9%): [202620.187, 417416.681] (assumes normal distribution) | |
[info] | |
[info] | |
[info] # JMH version: 1.19 | |
[info] # VM version: JDK 1.8.0_131, VM 25.131-b11 | |
[info] # VM invoker: C:\Program Files\Java\jdk1.8.0_131\jre\bin\java.exe | |
[info] # VM options: <none> | |
[info] # Warmup: 5 iterations, 1 s each | |
[info] # Measurement: 5 iterations, 1 s each | |
[info] # Timeout: 10 min per iteration | |
[info] # Threads: 1 thread, will synchronize iterations | |
[info] # Benchmark mode: Throughput, ops/time | |
[info] # Benchmark: miketest.java.TestJava2.inner1 | |
[info] | |
[info] # Run progress: 23.08% complete, ETA 00:03:30 | |
[info] # Fork: 1 of 2 | |
[info] # Warmup Iteration 1: 85300851.349 ops/s | |
[info] # Warmup Iteration 2: 75969708.593 ops/s | |
[info] # Warmup Iteration 3: 123639549.039 ops/s | |
[info] # Warmup Iteration 4: 126588235.460 ops/s | |
[info] # Warmup Iteration 5: 125565272.553 ops/s | |
[info] Iteration 1: 126388670.294 ops/s | |
[info] Iteration 2: 126030638.672 ops/s | |
[info] Iteration 3: 125777417.778 ops/s | |
[info] Iteration 4: 125110022.269 ops/s | |
[info] Iteration 5: 122336534.658 ops/s | |
[info] | |
[info] # Run progress: 26.92% complete, ETA 00:03:19 | |
[info] # Fork: 2 of 2 | |
[info] # Warmup Iteration 1: 84883054.802 ops/s | |
[info] # Warmup Iteration 2: 76802418.129 ops/s | |
[info] # Warmup Iteration 3: 106245100.450 ops/s | |
[info] # Warmup Iteration 4: 125833171.396 ops/s | |
[info] # Warmup Iteration 5: 125220512.854 ops/s | |
[info] Iteration 1: 122150402.149 ops/s | |
[info] Iteration 2: 126806379.303 ops/s | |
[info] Iteration 3: 122341690.741 ops/s | |
[info] Iteration 4: 115773690.783 ops/s | |
[info] Iteration 5: 120531625.331 ops/s | |
[info] | |
[info] | |
[info] Result "miketest.java.TestJava2.inner1": | |
[info] 123324707.198 ´�¢(99.9%) 5192815.217 ops/s [Average] | |
[info] (min, avg, max) = (115773690.783, 123324707.198, 126806379.303), stdev = 3434725.747 | |
[info] CI (99.9%): [118131891.981, 128517522.415] (assumes normal distribution) | |
[info] | |
[info] | |
[info] # JMH version: 1.19 | |
[info] # VM version: JDK 1.8.0_131, VM 25.131-b11 | |
[info] # VM invoker: C:\Program Files\Java\jdk1.8.0_131\jre\bin\java.exe | |
[info] # VM options: <none> | |
[info] # Warmup: 5 iterations, 1 s each | |
[info] # Measurement: 5 iterations, 1 s each | |
[info] # Timeout: 10 min per iteration | |
[info] # Threads: 1 thread, will synchronize iterations | |
[info] # Benchmark mode: Throughput, ops/time | |
[info] # Benchmark: miketest.scala.TestScala.inc | |
[info] | |
[info] # Run progress: 30.77% complete, ETA 00:03:09 | |
[info] # Fork: 1 of 2 | |
[info] # Warmup Iteration 1: 477419543.320 ops/s | |
[info] # Warmup Iteration 2: 467449128.424 ops/s | |
[info] # Warmup Iteration 3: 476731356.828 ops/s | |
[info] # Warmup Iteration 4: 475154739.773 ops/s | |
[info] # Warmup Iteration 5: 477161697.855 ops/s | |
[info] Iteration 1: 453477780.020 ops/s | |
[info] Iteration 2: 478817233.164 ops/s | |
[info] Iteration 3: 476810212.718 ops/s | |
[info] Iteration 4: 477232898.094 ops/s | |
[info] Iteration 5: 477805047.867 ops/s | |
[info] | |
[info] # Run progress: 34.62% complete, ETA 00:02:58 | |
[info] # Fork: 2 of 2 | |
[info] # Warmup Iteration 1: 475797249.869 ops/s | |
[info] # Warmup Iteration 2: 476740277.225 ops/s | |
[info] # Warmup Iteration 3: 477740862.171 ops/s | |
[info] # Warmup Iteration 4: 476771090.986 ops/s | |
[info] # Warmup Iteration 5: 464749314.575 ops/s | |
[info] Iteration 1: 474484407.713 ops/s | |
[info] Iteration 2: 463649981.414 ops/s | |
[info] Iteration 3: 475270023.617 ops/s | |
[info] Iteration 4: 465669909.117 ops/s | |
[info] Iteration 5: 466622778.068 ops/s | |
[info] | |
[info] | |
[info] Result "miketest.scala.TestScala.inc": | |
[info] 470984027.179 ´�¢(99.9%) 12538372.607 ops/s [Average] | |
[info] (min, avg, max) = (453477780.020, 470984027.179, 478817233.164), stdev = 8293357.152 | |
[info] CI (99.9%): [458445654.573, 483522399.786] (assumes normal distribution) | |
[info] | |
[info] | |
[info] # JMH version: 1.19 | |
[info] # VM version: JDK 1.8.0_131, VM 25.131-b11 | |
[info] # VM invoker: C:\Program Files\Java\jdk1.8.0_131\jre\bin\java.exe | |
[info] # VM options: <none> | |
[info] # Warmup: 5 iterations, 1 s each | |
[info] # Measurement: 5 iterations, 1 s each | |
[info] # Timeout: 10 min per iteration | |
[info] # Threads: 1 thread, will synchronize iterations | |
[info] # Benchmark mode: Throughput, ops/time | |
[info] # Benchmark: miketest.scala.TestScala.incFinal | |
[info] | |
[info] # Run progress: 38.46% complete, ETA 00:02:48 | |
[info] # Fork: 1 of 2 | |
[info] # Warmup Iteration 1: 465573004.746 ops/s | |
[info] # Warmup Iteration 2: 474455149.009 ops/s | |
[info] # Warmup Iteration 3: 485337168.085 ops/s | |
[info] # Warmup Iteration 4: 480956855.101 ops/s | |
[info] # Warmup Iteration 5: 479049880.316 ops/s | |
[info] Iteration 1: 465975318.222 ops/s | |
[info] Iteration 2: 480417317.936 ops/s | |
[info] Iteration 3: 475710746.424 ops/s | |
[info] Iteration 4: 475303776.959 ops/s | |
[info] Iteration 5: 468693454.572 ops/s | |
[info] | |
[info] # Run progress: 42.31% complete, ETA 00:02:37 | |
[info] # Fork: 2 of 2 | |
[info] # Warmup Iteration 1: 474387745.389 ops/s | |
[info] # Warmup Iteration 2: 474559797.499 ops/s | |
[info] # Warmup Iteration 3: 476775713.094 ops/s | |
[info] # Warmup Iteration 4: 432978950.691 ops/s | |
[info] # Warmup Iteration 5: 486002268.955 ops/s | |
[info] Iteration 1: 478920440.891 ops/s | |
[info] Iteration 2: 476442466.692 ops/s | |
[info] Iteration 3: 476493548.961 ops/s | |
[info] Iteration 4: 478143721.521 ops/s | |
[info] Iteration 5: 476626711.113 ops/s | |
[info] | |
[info] | |
[info] Result "miketest.scala.TestScala.incFinal": | |
[info] 475272750.329 ´�¢(99.9%) 6810422.108 ops/s [Average] | |
[info] (min, avg, max) = (465975318.222, 475272750.329, 480417317.936), stdev = 4504672.550 | |
[info] CI (99.9%): [468462328.221, 482083172.437] (assumes normal distribution) | |
[info] | |
[info] | |
[info] # JMH version: 1.19 | |
[info] # VM version: JDK 1.8.0_131, VM 25.131-b11 | |
[info] # VM invoker: C:\Program Files\Java\jdk1.8.0_131\jre\bin\java.exe | |
[info] # VM options: <none> | |
[info] # Warmup: 5 iterations, 1 s each | |
[info] # Measurement: 5 iterations, 1 s each | |
[info] # Timeout: 10 min per iteration | |
[info] # Threads: 1 thread, will synchronize iterations | |
[info] # Benchmark mode: Throughput, ops/time | |
[info] # Benchmark: miketest.scala.TestScala.incLocal | |
[info] | |
[info] # Run progress: 46.15% complete, ETA 00:02:27 | |
[info] # Fork: 1 of 2 | |
[info] # Warmup Iteration 1: 284753.029 ops/s | |
[info] # Warmup Iteration 2: 279649.559 ops/s | |
[info] # Warmup Iteration 3: 345939.766 ops/s | |
[info] # Warmup Iteration 4: 345772.981 ops/s | |
[info] # Warmup Iteration 5: 346875.815 ops/s | |
[info] Iteration 1: 346739.157 ops/s | |
[info] Iteration 2: 345807.829 ops/s | |
[info] Iteration 3: 344982.465 ops/s | |
[info] Iteration 4: 346458.686 ops/s | |
[info] Iteration 5: 344592.869 ops/s | |
[info] | |
[info] # Run progress: 50.00% complete, ETA 00:02:16 | |
[info] # Fork: 2 of 2 | |
[info] # Warmup Iteration 1: 295495.666 ops/s | |
[info] # Warmup Iteration 2: 283399.542 ops/s | |
[info] # Warmup Iteration 3: 346100.612 ops/s | |
[info] # Warmup Iteration 4: 345594.978 ops/s | |
[info] # Warmup Iteration 5: 345316.063 ops/s | |
[info] Iteration 1: 345273.662 ops/s | |
[info] Iteration 2: 345447.375 ops/s | |
[info] Iteration 3: 345227.186 ops/s | |
[info] Iteration 4: 345600.955 ops/s | |
[info] Iteration 5: 345140.150 ops/s | |
[info] | |
[info] | |
[info] Result "miketest.scala.TestScala.incLocal": | |
[info] 345527.033 ´�¢(99.9%) 995.338 ops/s [Average] | |
[info] (min, avg, max) = (344592.869, 345527.033, 346739.157), stdev = 658.355 | |
[info] CI (99.9%): [344531.695, 346522.372] (assumes normal distribution) | |
[info] | |
[info] | |
[info] # JMH version: 1.19 | |
[info] # VM version: JDK 1.8.0_131, VM 25.131-b11 | |
[info] # VM invoker: C:\Program Files\Java\jdk1.8.0_131\jre\bin\java.exe | |
[info] # VM options: <none> | |
[info] # Warmup: 5 iterations, 1 s each | |
[info] # Measurement: 5 iterations, 1 s each | |
[info] # Timeout: 10 min per iteration | |
[info] # Threads: 1 thread, will synchronize iterations | |
[info] # Benchmark mode: Throughput, ops/time | |
[info] # Benchmark: miketest.scala.TestScala.incPrivate | |
[info] | |
[info] # Run progress: 53.85% complete, ETA 00:02:05 | |
[info] # Fork: 1 of 2 | |
[info] # Warmup Iteration 1: 474630884.996 ops/s | |
[info] # Warmup Iteration 2: 474527472.901 ops/s | |
[info] # Warmup Iteration 3: 477047490.078 ops/s | |
[info] # Warmup Iteration 4: 484492723.258 ops/s | |
[info] # Warmup Iteration 5: 482220679.887 ops/s | |
[info] Iteration 1: 476941363.458 ops/s | |
[info] Iteration 2: 476407136.272 ops/s | |
[info] Iteration 3: 477239946.878 ops/s | |
[info] Iteration 4: 476068443.704 ops/s | |
[info] Iteration 5: 476760321.191 ops/s | |
[info] | |
[info] # Run progress: 57.69% complete, ETA 00:01:55 | |
[info] # Fork: 2 of 2 | |
[info] # Warmup Iteration 1: 475643900.832 ops/s | |
[info] # Warmup Iteration 2: 475366739.077 ops/s | |
[info] # Warmup Iteration 3: 476770246.571 ops/s | |
[info] # Warmup Iteration 4: 476565069.208 ops/s | |
[info] # Warmup Iteration 5: 476571232.323 ops/s | |
[info] Iteration 1: 476776545.156 ops/s | |
[info] Iteration 2: 476022747.734 ops/s | |
[info] Iteration 3: 475784201.247 ops/s | |
[info] Iteration 4: 476428900.370 ops/s | |
[info] Iteration 5: 476671826.134 ops/s | |
[info] | |
[info] | |
[info] Result "miketest.scala.TestScala.incPrivate": | |
[info] 476510143.214 ´�¢(99.9%) 686397.286 ops/s [Average] | |
[info] (min, avg, max) = (475784201.247, 476510143.214, 477239946.878), stdev = 454009.306 | |
[info] CI (99.9%): [475823745.928, 477196540.501] (assumes normal distribution) | |
[info] | |
[info] | |
[info] # JMH version: 1.19 | |
[info] # VM version: JDK 1.8.0_131, VM 25.131-b11 | |
[info] # VM invoker: C:\Program Files\Java\jdk1.8.0_131\jre\bin\java.exe | |
[info] # VM options: <none> | |
[info] # Warmup: 5 iterations, 1 s each | |
[info] # Measurement: 5 iterations, 1 s each | |
[info] # Timeout: 10 min per iteration | |
[info] # Threads: 1 thread, will synchronize iterations | |
[info] # Benchmark mode: Throughput, ops/time | |
[info] # Benchmark: miketest.scala.TestScala2.inner1 | |
[info] | |
[info] # Run progress: 61.54% complete, ETA 00:01:44 | |
[info] # Fork: 1 of 2 | |
[info] # Warmup Iteration 1: 85167647.514 ops/s | |
[info] # Warmup Iteration 2: 80583329.872 ops/s | |
[info] # Warmup Iteration 3: 127198519.093 ops/s | |
[info] # Warmup Iteration 4: 127280473.336 ops/s | |
[info] # Warmup Iteration 5: 126958224.378 ops/s | |
[info] Iteration 1: 126245766.475 ops/s | |
[info] Iteration 2: 127151594.791 ops/s | |
[info] Iteration 3: 125801813.102 ops/s | |
[info] Iteration 4: 126780737.105 ops/s | |
[info] Iteration 5: 125789989.849 ops/s | |
[info] | |
[info] # Run progress: 65.38% complete, ETA 00:01:34 | |
[info] # Fork: 2 of 2 | |
[info] # Warmup Iteration 1: 85767921.755 ops/s | |
[info] # Warmup Iteration 2: 81659265.466 ops/s | |
[info] # Warmup Iteration 3: 126873722.776 ops/s | |
[info] # Warmup Iteration 4: 126925789.508 ops/s | |
[info] # Warmup Iteration 5: 127022514.479 ops/s | |
[info] Iteration 1: 127283510.898 ops/s | |
[info] Iteration 2: 127702434.492 ops/s | |
[info] Iteration 3: 126755731.564 ops/s | |
[info] Iteration 4: 126125979.546 ops/s | |
[info] Iteration 5: 126513318.648 ops/s | |
[info] | |
[info] | |
[info] Result "miketest.scala.TestScala2.inner1": | |
[info] 126615087.647 ´�¢(99.9%) 968370.121 ops/s [Average] | |
[info] (min, avg, max) = (125789989.849, 126615087.647, 127702434.492), stdev = 640516.877 | |
[info] CI (99.9%): [125646717.526, 127583457.768] (assumes normal distribution) | |
[info] | |
[info] | |
[info] # JMH version: 1.19 | |
[info] # VM version: JDK 1.8.0_131, VM 25.131-b11 | |
[info] # VM invoker: C:\Program Files\Java\jdk1.8.0_131\jre\bin\java.exe | |
[info] # VM options: <none> | |
[info] # Warmup: 5 iterations, 1 s each | |
[info] # Measurement: 5 iterations, 1 s each | |
[info] # Timeout: 10 min per iteration | |
[info] # Threads: 1 thread, will synchronize iterations | |
[info] # Benchmark mode: Throughput, ops/time | |
[info] # Benchmark: miketest.scala.TestScala2.inner2_1 | |
[info] | |
[info] # Run progress: 69.23% complete, ETA 00:01:23 | |
[info] # Fork: 1 of 2 | |
[info] # Warmup Iteration 1: 145536836.434 ops/s | |
[info] # Warmup Iteration 2: 168140021.624 ops/s | |
[info] # Warmup Iteration 3: 236613241.593 ops/s | |
[info] # Warmup Iteration 4: 236864364.439 ops/s | |
[info] # Warmup Iteration 5: 235569173.298 ops/s | |
[info] Iteration 1: 235057305.217 ops/s | |
[info] Iteration 2: 232618111.588 ops/s | |
[info] Iteration 3: 225278682.953 ops/s | |
[info] Iteration 4: 233350871.477 ops/s | |
[info] Iteration 5: 234185930.868 ops/s | |
[info] | |
[info] # Run progress: 73.08% complete, ETA 00:01:13 | |
[info] # Fork: 2 of 2 | |
[info] # Warmup Iteration 1: 147627226.766 ops/s | |
[info] # Warmup Iteration 2: 167318885.594 ops/s | |
[info] # Warmup Iteration 3: 237388675.650 ops/s | |
[info] # Warmup Iteration 4: 237100096.301 ops/s | |
[info] # Warmup Iteration 5: 236993979.317 ops/s | |
[info] Iteration 1: 235892654.415 ops/s | |
[info] Iteration 2: 232577607.905 ops/s | |
[info] Iteration 3: 235363969.219 ops/s | |
[info] Iteration 4: 235633618.622 ops/s | |
[info] Iteration 5: 233505375.755 ops/s | |
[info] | |
[info] | |
[info] Result "miketest.scala.TestScala2.inner2_1": | |
[info] 233346412.802 ´�¢(99.9%) 4664002.109 ops/s [Average] | |
[info] (min, avg, max) = (225278682.953, 233346412.802, 235892654.415), stdev = 3084948.618 | |
[info] CI (99.9%): [228682410.693, 238010414.911] (assumes normal distribution) | |
[info] | |
[info] | |
[info] # JMH version: 1.19 | |
[info] # VM version: JDK 1.8.0_131, VM 25.131-b11 | |
[info] # VM invoker: C:\Program Files\Java\jdk1.8.0_131\jre\bin\java.exe | |
[info] # VM options: <none> | |
[info] # Warmup: 5 iterations, 1 s each | |
[info] # Measurement: 5 iterations, 1 s each | |
[info] # Timeout: 10 min per iteration | |
[info] # Threads: 1 thread, will synchronize iterations | |
[info] # Benchmark mode: Throughput, ops/time | |
[info] # Benchmark: miketest.scala.TestScala2.inner2_2 | |
[info] | |
[info] # Run progress: 76.92% complete, ETA 00:01:02 | |
[info] # Fork: 1 of 2 | |
[info] # Warmup Iteration 1: 150488130.267 ops/s | |
[info] # Warmup Iteration 2: 167073361.424 ops/s | |
[info] # Warmup Iteration 3: 237655136.180 ops/s | |
[info] # Warmup Iteration 4: 229252472.441 ops/s | |
[info] # Warmup Iteration 5: 228686776.237 ops/s | |
[info] Iteration 1: 224146466.752 ops/s | |
[info] Iteration 2: 225133865.025 ops/s | |
[info] Iteration 3: 191705148.311 ops/s | |
[info] Iteration 4: 208586217.791 ops/s | |
[info] Iteration 5: 231905623.831 ops/s | |
[info] | |
[info] # Run progress: 80.77% complete, ETA 00:00:52 | |
[info] # Fork: 2 of 2 | |
[info] # Warmup Iteration 1: 150314754.290 ops/s | |
[info] # Warmup Iteration 2: 169003293.553 ops/s | |
[info] # Warmup Iteration 3: 235358163.886 ops/s | |
[info] # Warmup Iteration 4: 237366574.554 ops/s | |
[info] # Warmup Iteration 5: 236858901.229 ops/s | |
[info] Iteration 1: 234940517.535 ops/s | |
[info] Iteration 2: 217997610.126 ops/s | |
[info] Iteration 3: 212017528.109 ops/s | |
[info] Iteration 4: 233015165.392 ops/s | |
[info] Iteration 5: 233406600.031 ops/s | |
[info] | |
[info] | |
[info] Result "miketest.scala.TestScala2.inner2_2": | |
[info] 221285474.290 ´�¢(99.9%) 21019844.558 ops/s [Average] | |
[info] (min, avg, max) = (191705148.311, 221285474.290, 234940517.535), stdev = 13903325.709 | |
[info] CI (99.9%): [200265629.732, 242305318.848] (assumes normal distribution) | |
[info] | |
[info] | |
[info] # JMH version: 1.19 | |
[info] # VM version: JDK 1.8.0_131, VM 25.131-b11 | |
[info] # VM invoker: C:\Program Files\Java\jdk1.8.0_131\jre\bin\java.exe | |
[info] # VM options: <none> | |
[info] # Warmup: 5 iterations, 1 s each | |
[info] # Measurement: 5 iterations, 1 s each | |
[info] # Timeout: 10 min per iteration | |
[info] # Threads: 1 thread, will synchronize iterations | |
[info] # Benchmark mode: Throughput, ops/time | |
[info] # Benchmark: miketest.scala.TestScala2.inner2_3 | |
[info] | |
[info] # Run progress: 84.62% complete, ETA 00:00:41 | |
[info] # Fork: 1 of 2 | |
[info] # Warmup Iteration 1: 148094195.047 ops/s | |
[info] # Warmup Iteration 2: 168270890.642 ops/s | |
[info] # Warmup Iteration 3: 235359643.933 ops/s | |
[info] # Warmup Iteration 4: 237372987.722 ops/s | |
[info] # Warmup Iteration 5: 235493989.918 ops/s | |
[info] Iteration 1: 233976003.974 ops/s | |
[info] Iteration 2: 232442629.850 ops/s | |
[info] Iteration 3: 226703463.236 ops/s | |
[info] Iteration 4: 227996748.697 ops/s | |
[info] Iteration 5: 229046196.996 ops/s | |
[info] | |
[info] # Run progress: 88.46% complete, ETA 00:00:31 | |
[info] # Fork: 2 of 2 | |
[info] # Warmup Iteration 1: 148023898.051 ops/s | |
[info] # Warmup Iteration 2: 159325564.118 ops/s | |
[info] # Warmup Iteration 3: 227601250.957 ops/s | |
[info] # Warmup Iteration 4: 225728249.745 ops/s | |
[info] # Warmup Iteration 5: 227938083.604 ops/s | |
[info] Iteration 1: 221619532.862 ops/s | |
[info] Iteration 2: 222180964.274 ops/s | |
[info] Iteration 3: 227027106.823 ops/s | |
[info] Iteration 4: 224584925.722 ops/s | |
[info] Iteration 5: 226737294.331 ops/s | |
[info] | |
[info] | |
[info] Result "miketest.scala.TestScala2.inner2_3": | |
[info] 227231486.676 ´�¢(99.9%) 5986102.635 ops/s [Average] | |
[info] (min, avg, max) = (221619532.862, 227231486.676, 233976003.974), stdev = 3959436.257 | |
[info] CI (99.9%): [221245384.042, 233217589.311] (assumes normal distribution) | |
[info] | |
[info] | |
[info] # JMH version: 1.19 | |
[info] # VM version: JDK 1.8.0_131, VM 25.131-b11 | |
[info] # VM invoker: C:\Program Files\Java\jdk1.8.0_131\jre\bin\java.exe | |
[info] # VM options: <none> | |
[info] # Warmup: 5 iterations, 1 s each | |
[info] # Measurement: 5 iterations, 1 s each | |
[info] # Timeout: 10 min per iteration | |
[info] # Threads: 1 thread, will synchronize iterations | |
[info] # Benchmark mode: Throughput, ops/time | |
[info] # Benchmark: miketest.scala.TestScala2.inner2_4 | |
[info] | |
[info] # Run progress: 92.31% complete, ETA 00:00:21 | |
[info] # Fork: 1 of 2 | |
[info] # Warmup Iteration 1: 150476413.955 ops/s | |
[info] # Warmup Iteration 2: 168578554.129 ops/s | |
[info] # Warmup Iteration 3: 232848211.981 ops/s | |
[info] # Warmup Iteration 4: 229334463.188 ops/s | |
[info] # Warmup Iteration 5: 232375578.298 ops/s | |
[info] Iteration 1: 206629016.947 ops/s | |
[info] Iteration 2: 232889161.433 ops/s | |
[info] Iteration 3: 234762986.107 ops/s | |
[info] Iteration 4: 200600780.626 ops/s | |
[info] Iteration 5: 214352371.400 ops/s | |
[info] | |
[info] # Run progress: 96.15% complete, ETA 00:00:10 | |
[info] # Fork: 2 of 2 | |
[info] # Warmup Iteration 1: 140395113.860 ops/s | |
[info] # Warmup Iteration 2: 158628399.547 ops/s | |
[info] # Warmup Iteration 3: 187758962.101 ops/s | |
[info] # Warmup Iteration 4: 234126786.202 ops/s | |
[info] # Warmup Iteration 5: 214600160.356 ops/s | |
[info] Iteration 1: 235106268.624 ops/s | |
[info] Iteration 2: 234184226.115 ops/s | |
[info] Iteration 3: 214314313.440 ops/s | |
[info] Iteration 4: 234265161.410 ops/s | |
[info] Iteration 5: 210885007.378 ops/s | |
[info] | |
[info] | |
[info] Result "miketest.scala.TestScala2.inner2_4": | |
[info] 221798929.348 ´�¢(99.9%) 20699014.009 ops/s [Average] | |
[info] (min, avg, max) = (200600780.626, 221798929.348, 235106268.624), stdev = 13691116.165 | |
[info] CI (99.9%): [201099915.339, 242497943.357] (assumes normal distribution) | |
[info] | |
[info] | |
[info] # Run complete. Total time: 00:04:33 | |
[info] | |
[info] Benchmark Mode Cnt Score Error Units | |
[info] m.java.TestJava.inc thrpt 10 475610336.582 ´�¢ 1011144.966 ops/s | |
[info] m.java.TestJava.inc2 thrpt 10 476912213.310 ´�¢ 6453736.174 ops/s | |
[info] m.java.TestJava.incLocal thrpt 10 310018.434 ´�¢ 107398.247 ops/s | |
[info] m.java.TestJava2.inner1 thrpt 10 123324707.198 ´�¢ 5192815.217 ops/s | |
[info] m.scala.TestScala.inc thrpt 10 470984027.179 ´�¢ 12538372.607 ops/s | |
[info] m.scala.TestScala.incFinal thrpt 10 475272750.329 ´�¢ 6810422.108 ops/s | |
[info] m.scala.TestScala.incLocal thrpt 10 345527.033 ´�¢ 995.338 ops/s | |
[info] m.scala.TestScala.incPrivate thrpt 10 476510143.214 ´�¢ 686397.286 ops/s | |
[info] m.scala.TestScala2.inner1 thrpt 10 126615087.647 ´�¢ 968370.121 ops/s | |
[info] m.scala.TestScala2.inner2_1 thrpt 10 233346412.802 ´�¢ 4664002.109 ops/s | |
[info] m.scala.TestScala2.inner2_2 thrpt 10 221285474.290 ´�¢ 21019844.558 ops/s | |
[info] m.scala.TestScala2.inner2_3 thrpt 10 227231486.676 ´�¢ 5986102.635 ops/s | |
[info] m.scala.TestScala2.inner2_4 thrpt 10 221798929.348 ´�¢ 20699014.009 ops/s | |
[success] Total time: 276 s, completed 10-Apr-2018 23:29:34 | |
[IJ]> | |
--------------------------------------------------------- | |
// class version 52.0 (52) | |
// access flags 0x21 | |
public class miketest/scala/OuterI$Inner2 extends miketest/scala/OuterI$Inner { | |
// compiled from: TestScala2.scala | |
ATTRIBUTE Scala : unknown | |
ATTRIBUTE ScalaInlineInfo : unknown | |
// access flags 0x1 | |
public INNERCLASS miketest/scala/OuterI$Inner miketest/scala/OuterI Inner | |
// access flags 0x1 | |
public INNERCLASS miketest/scala/OuterI$Inner2 miketest/scala/OuterI Inner2 | |
// access flags 0x1 | |
public callInner1x()I | |
L0 | |
LINENUMBER 92 L0 | |
ALOAD 0 | |
INVOKEVIRTUAL miketest/scala/OuterI$Inner2.miketest$scala$OuterI$Inner2$$$outer ()Lmiketest/scala/OuterI; | |
INVOKEINTERFACE miketest/scala/OuterI.c ()I | |
ALOAD 0 | |
INVOKEVIRTUAL miketest/scala/OuterI$Inner2.miketest$scala$OuterI$Inner2$$$outer ()Lmiketest/scala/OuterI; | |
INVOKEINTERFACE miketest/scala/OuterI.c ()I | |
IADD | |
ALOAD 0 | |
INVOKEVIRTUAL miketest/scala/OuterI$Inner2.miketest$scala$OuterI$Inner2$$$outer ()Lmiketest/scala/OuterI; | |
INVOKEINTERFACE miketest/scala/OuterI.c ()I | |
IADD | |
ALOAD 0 | |
INVOKEVIRTUAL miketest/scala/OuterI$Inner2.miketest$scala$OuterI$Inner2$$$outer ()Lmiketest/scala/OuterI; | |
INVOKEINTERFACE miketest/scala/OuterI.c ()I | |
IADD | |
ALOAD 0 | |
INVOKEVIRTUAL miketest/scala/OuterI$Inner2.miketest$scala$OuterI$Inner2$$$outer ()Lmiketest/scala/OuterI; | |
INVOKEINTERFACE miketest/scala/OuterI.c ()I | |
IADD | |
IRETURN | |
L1 | |
LOCALVARIABLE this Lmiketest/scala/OuterI$Inner2; L0 L1 0 | |
MAXSTACK = 2 | |
MAXLOCALS = 1 | |
// access flags 0x1 | |
public callInner2x()I | |
L0 | |
LINENUMBER 93 L0 | |
ALOAD 0 | |
INVOKEVIRTUAL miketest/scala/OuterI$Inner2.miketest$scala$OuterI$Inner2$$$outer ()Lmiketest/scala/OuterI; | |
INVOKEINTERFACE miketest/scala/OuterI.base ()I | |
ALOAD 0 | |
INVOKEVIRTUAL miketest/scala/OuterI$Inner2.miketest$scala$OuterI$Inner2$$$outer ()Lmiketest/scala/OuterI; | |
INVOKEINTERFACE miketest/scala/OuterI.base ()I | |
IADD | |
ALOAD 0 | |
INVOKEVIRTUAL miketest/scala/OuterI$Inner2.miketest$scala$OuterI$Inner2$$$outer ()Lmiketest/scala/OuterI; | |
INVOKEINTERFACE miketest/scala/OuterI.base ()I | |
IADD | |
ALOAD 0 | |
INVOKEVIRTUAL miketest/scala/OuterI$Inner2.miketest$scala$OuterI$Inner2$$$outer ()Lmiketest/scala/OuterI; | |
INVOKEINTERFACE miketest/scala/OuterI.base ()I | |
IADD | |
ALOAD 0 | |
INVOKEVIRTUAL miketest/scala/OuterI$Inner2.miketest$scala$OuterI$Inner2$$$outer ()Lmiketest/scala/OuterI; | |
INVOKEINTERFACE miketest/scala/OuterI.base ()I | |
IADD | |
IRETURN | |
L1 | |
LOCALVARIABLE this Lmiketest/scala/OuterI$Inner2; L0 L1 0 | |
MAXSTACK = 2 | |
MAXLOCALS = 1 | |
// access flags 0x1 | |
public callInner3x()I | |
L0 | |
LINENUMBER 94 L0 | |
ALOAD 0 | |
INVOKEVIRTUAL miketest/scala/OuterI$Inner2.miketest$scala$OuterI$Inner2$$$outer ()Lmiketest/scala/OuterI; | |
CHECKCAST miketest/scala/E | |
INVOKEINTERFACE miketest/scala/E.e ()I | |
IRETURN | |
L1 | |
LOCALVARIABLE this Lmiketest/scala/OuterI$Inner2; L0 L1 0 | |
MAXSTACK = 1 | |
MAXLOCALS = 1 | |
// access flags 0x1 | |
public callInner4()I | |
L0 | |
LINENUMBER 95 L0 | |
ALOAD 0 | |
INVOKEVIRTUAL miketest/scala/OuterI$Inner2.miketest$scala$OuterI$Inner2$$$outer ()Lmiketest/scala/OuterI; | |
CHECKCAST miketest/scala/E | |
INVOKEINTERFACE miketest/scala/E.aFromE ()I | |
IRETURN | |
L1 | |
LOCALVARIABLE this Lmiketest/scala/OuterI$Inner2; L0 L1 0 | |
MAXSTACK = 1 | |
MAXLOCALS = 1 | |
// access flags 0x1001 | |
public synthetic miketest$scala$OuterI$Inner2$$$outer()Lmiketest/scala/OuterI; | |
L0 | |
LINENUMBER 91 L0 | |
ALOAD 0 | |
GETFIELD miketest/scala/OuterI$Inner2.$outer : Lmiketest/scala/OuterI; | |
ARETURN | |
L1 | |
LOCALVARIABLE this Lmiketest/scala/OuterI$Inner2; L0 L1 0 | |
MAXSTACK = 1 | |
MAXLOCALS = 1 | |
// access flags 0x1 | |
public <init>(Lmiketest/scala/OuterI;)V | |
// parameter final $outer | |
L0 | |
LINENUMBER 91 L0 | |
ALOAD 0 | |
ALOAD 1 | |
INVOKESPECIAL miketest/scala/OuterI$Inner.<init> (Lmiketest/scala/OuterI;)V | |
RETURN | |
L1 | |
LOCALVARIABLE this Lmiketest/scala/OuterI$Inner2; L0 L1 0 | |
LOCALVARIABLE $outer Lmiketest/scala/OuterI; L0 L1 1 | |
MAXSTACK = 2 | |
MAXLOCALS = 2 | |
} | |
--------------------------------------------------------- | |
// class version 52.0 (52) | |
// access flags 0x601 | |
public abstract interface miketest/scala/E implements miketest/scala/Base { | |
// compiled from: TestScala2.scala | |
@Lscala/reflect/ScalaSignature;(bytes="\u0006\u0001E2\u0001\"\u0001\u0002\u0011\u0002\u0007\u0005qa\u0008\u0002\u0002\u000b*\u00111\u0001B\u0001\u0006g\u000e\u000cG.\u0019\u0006\u0002\u000b\u0005AQ.[6fi\u0016\u001cHo\u0001\u0001\u0014\u0007\u0001AQ\u0002\u0005\u0002\n\u00175\u0009!BC\u0001\u0004\u0013\u0009a!B\u0001\u0004B]f\u0014VM\u001a\u0009\u0003\u001d=i\u0011AA\u0005\u0003!\u0009\u0011AAQ1tK\")!\u0003\u0001C\u0001'\u00051A%\u001b8ji\u0012\"\u0012\u0001\u0006\u0009\u0003\u0013UI!A\u0006\u0006\u0003\u0009Us\u0017\u000e\u001e\u0005\u00061\u0001!\u0009!G\u0001\u0002KV\u0009!\u0004\u0005\u0002\n7%\u0011AD\u0003\u0002\u0004\u0013:$\u0008\"\u0002\u0010\u0001\u0009\u0003I\u0012AB1Ge>lWIE\u0002!E\r2A!\u0009\u0001\u0001?\u0009aAH]3gS:,W.\u001a8u}A\u0011a\u0002\u0001\n\u0006I\u0015B3F\u000c\u0004\u0005C\u0001\u00011\u0005\u0005\u0002\u000fM%\u0011qE\u0001\u0002\u0002\u0003B\u0011a\"K\u0005\u0003U\u0009\u0011\u0011A\u0011\u0009\u0003\u001d1J!!\u000c\u0002\u0003\u0003\r\u0003\"AD\u0018\n\u0005A\u0012!!\u0001#") | |
ATTRIBUTE ScalaSig : unknown | |
ATTRIBUTE ScalaInlineInfo : unknown | |
// access flags 0x1009 | |
public static synthetic e$(Lmiketest/scala/E;)I | |
// parameter final synthetic $this | |
L0 | |
LINENUMBER 66 L0 | |
ALOAD 0 | |
INVOKESPECIAL miketest/scala/E.e ()I | |
IRETURN | |
L1 | |
LOCALVARIABLE $this Lmiketest/scala/E; L0 L1 0 | |
MAXSTACK = 1 | |
MAXLOCALS = 1 | |
// access flags 0x1 | |
public default e()I | |
L0 | |
LINENUMBER 66 L0 | |
BIPUSH 7 | |
IRETURN | |
L1 | |
LOCALVARIABLE this Lmiketest/scala/E; L0 L1 0 | |
MAXSTACK = 1 | |
MAXLOCALS = 1 | |
// access flags 0x1009 | |
public static synthetic aFromE$(Lmiketest/scala/E;)I | |
// parameter final synthetic $this | |
L0 | |
LINENUMBER 67 L0 | |
ALOAD 0 | |
INVOKESPECIAL miketest/scala/E.aFromE ()I | |
IRETURN | |
L1 | |
LOCALVARIABLE $this Lmiketest/scala/E; L0 L1 0 | |
MAXSTACK = 1 | |
MAXLOCALS = 1 | |
// access flags 0x1 | |
public default aFromE()I | |
L0 | |
LINENUMBER 67 L0 | |
ALOAD 0 | |
CHECKCAST miketest/scala/A | |
INVOKEINTERFACE miketest/scala/A.a ()I | |
IRETURN | |
L1 | |
LOCALVARIABLE this Lmiketest/scala/E; L0 L1 0 | |
MAXSTACK = 1 | |
MAXLOCALS = 1 | |
// access flags 0x9 | |
public static $init$(Lmiketest/scala/E;)V | |
// parameter final synthetic $this | |
L0 | |
LINENUMBER 64 L0 | |
RETURN | |
L1 | |
LOCALVARIABLE $this Lmiketest/scala/E; L0 L1 0 | |
MAXSTACK = 0 | |
MAXLOCALS = 1 | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment