Class BasicThroughput

java.lang.Object
net.kolotyluk.benchmark.BasicThroughput
Direct Known Subclasses:
BasicThroughput_jmhType_B1

public class BasicThroughput extends Object

Prime Numbers with Streams

These benchmarks can take a very long time to complete, and for some tests utilize almost 100% of all CPUs.

Make sure we are running with the right JDK for Project Loom
 $ "${JAVA_HOME}/bin/java" -version
 openjdk version "18-loom" 2022-03-15
 OpenJDK Runtime Environment (build 18-loom+2-74)
 OpenJDK 64-Bit Server VM (build 18-loom+2-74, mixed mode, sharing)
 
Make sure the laboratory has been compiled and installed for benchmarking.
 $ cd laboratory
 $ mvn clean install
 
Run the benchmarks.
 $ cd benchmarks
 $ mvn clean install
 $ java -jar target/benchmarks.jar PrimeNumbers
 
  • Constructor Details

    • BasicThroughput

      public BasicThroughput()
  • Method Details

    • main

      public static void main(String[] args) throws org.openjdk.jmh.runner.RunnerException
      Throws:
      org.openjdk.jmh.runner.RunnerException
    • baselineStream1To_10

      public void baselineStream1To_10()
    • baselineStream1To_100

      public void baselineStream1To_100()
    • baselineStream1To_1000

      public void baselineStream1To_1000()
    • baselineStream1To_10000

      public void baselineStream1To_10000()
    • baselineStream2To_10

      public void baselineStream2To_10()
    • baselineStream2To_100

      public void baselineStream2To_100()
    • baselineStream2To_1000

      public void baselineStream2To_1000()
    • baselineStream2To_10000

      public void baselineStream2To_10000()
    • parallelStream1To_10

      public void parallelStream1To_10()
    • parallelStream1To_100

      public void parallelStream1To_100()
    • parallelStream1To_1000

      public void parallelStream1To_1000()
    • parallelStream1To_10000

      public void parallelStream1To_10000()
    • parallelStream2To_10

      public void parallelStream2To_10()
    • parallelStream2To_100

      public void parallelStream2To_100()
    • parallelStream2To_1000

      public void parallelStream2To_1000()
    • parallelStream2To_10000

      public void parallelStream2To_10000()
    • structuredPlatformThreads1To_10

      public void structuredPlatformThreads1To_10()
    • structuredPlatformThreads1To_100

      public void structuredPlatformThreads1To_100()
    • structuredPlatformThreads1To_1000

      public void structuredPlatformThreads1To_1000()
    • structuredPlatformThreads1To_10000

      public void structuredPlatformThreads1To_10000()
    • structuredPlatformThreads2To_10

      public void structuredPlatformThreads2To_10()
    • structuredPlatformThreads2To_100

      public void structuredPlatformThreads2To_100()
    • structuredPlatformThreads2To_1000

      public void structuredPlatformThreads2To_1000()
    • structuredPlatformThreads2To_10000

      public void structuredPlatformThreads2To_10000()
    • structuredVirtualThreads1To_10

      public void structuredVirtualThreads1To_10()
    • structuredVirtualThreads1To_100

      public void structuredVirtualThreads1To_100()
    • structuredVirtualThreads1To_1000

      public void structuredVirtualThreads1To_1000()
    • structuredVirtualThreads1To_10000

      public void structuredVirtualThreads1To_10000()
    • structuredVirtualThreads2To_10

      public void structuredVirtualThreads2To_10()
    • structuredVirtualThreads2To_100

      public void structuredVirtualThreads2To_100()
    • structuredVirtualThread2sTo_1000

      public void structuredVirtualThread2sTo_1000()
    • structuredVirtualThreads2To_10000

      public void structuredVirtualThreads2To_10000()
    • transactionalBaselineStream1To_10

      public void transactionalBaselineStream1To_10()
    • transactionalBaselineStream1To_100

      public void transactionalBaselineStream1To_100()
    • transactionalBaselineStream1To_1000

      public void transactionalBaselineStream1To_1000()
    • transactionalBaselineStream1To_10000

      public void transactionalBaselineStream1To_10000()
    • transactionalBaselineStream2To_10

      public void transactionalBaselineStream2To_10()
    • transactionalBaselineStream2To_100

      public void transactionalBaselineStream2To_100()
    • transactionalBaselineStream2To_1000

      public void transactionalBaselineStream2To_1000()
    • transactionalBaselineStream2To_10000

      public void transactionalBaselineStream2To_10000()
    • transactionalParallelStream1To_10

      public void transactionalParallelStream1To_10()
    • transactionalParallelStream1To_100

      public void transactionalParallelStream1To_100()
    • transactionalParallelStream1To_1000

      public void transactionalParallelStream1To_1000()
    • transactionalParallelStream1To_10000

      public void transactionalParallelStream1To_10000()
    • transactionalParallelStream2To_10

      public void transactionalParallelStream2To_10()
    • transactionalParallelStream2To_100

      public void transactionalParallelStream2To_100()
    • transactionalParallelStream2To_1000

      public void transactionalParallelStream2To_1000()
    • transactionalParallelStream2To_10000

      public void transactionalParallelStream2To_10000()
    • transactionalStructuredPlatformThreads1To_10

      public void transactionalStructuredPlatformThreads1To_10()
    • transactionalStructuredPlatformThreads1To_100

      public void transactionalStructuredPlatformThreads1To_100()
    • transactionalStructuredPlatformThreads1To_1000

      public void transactionalStructuredPlatformThreads1To_1000()
    • transactionalStructuredPlatformThreads1To_10000

      public void transactionalStructuredPlatformThreads1To_10000()
    • transactionalStructuredPlatformThreads2To_10

      public void transactionalStructuredPlatformThreads2To_10()
    • transactionalStructuredPlatformThreads2To_100

      public void transactionalStructuredPlatformThreads2To_100()
    • transactionalStructuredPlatformThreads2To_1000

      public void transactionalStructuredPlatformThreads2To_1000()
    • transactionalStructuredPlatformThreads2To_10000

      public void transactionalStructuredPlatformThreads2To_10000()
    • transactionalStructuredVirtualThreads1To_10

      public void transactionalStructuredVirtualThreads1To_10()
    • transactionalStructuredVirtualThreads1To_100

      public void transactionalStructuredVirtualThreads1To_100()
    • transactionalStructuredVirtualThreads1To_1000

      public void transactionalStructuredVirtualThreads1To_1000()
    • transactionalStructuredVirtualThreads1To_10000

      public void transactionalStructuredVirtualThreads1To_10000()
    • transactionalStructuredVirtualThreads2To_10

      public void transactionalStructuredVirtualThreads2To_10()
    • transactionalStructuredVirtualThreads2To_100

      public void transactionalStructuredVirtualThreads2To_100()
    • transactionalStructuredVirtualThreads2To_1000

      public void transactionalStructuredVirtualThreads2To_1000()
    • transactionalStructuredVirtualThreads2To_10000

      public void transactionalStructuredVirtualThreads2To_10000()