JMH tests are more precise.
The only JMH downside is that it takes time and special skills to run
The below results are calculated for the same operations as basic benchmarks presented before
Results like List_1000_asNative and List_1000_asStream are calculated for the same functionality as List Benchmark test with collection size parameter 1000
Note that absolute ops/sec result is less important, than comparison of two numbers derived asNative and asStream
JMH tests are more precise. The only JMH downside is that it takes time and special skills to run
The below results are calculated for the same operations as basic benchmarks presented before
Results like
List_1000_asNative
andList_1000_asStream
are calculated for the same functionality as List Benchmark test with collection size parameter 1000Note that absolute ops/sec result is less important, than comparison of two numbers derived asNative and asStream
The source code is on GitHub