#4752 ported remaining Java benchmarks to JMH #4774
Merged
+201
−175
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1:1 port of the existing Java benchmarks in the core tests dir to JMH for #4752.
Now outputs:
# Run complete. Total time: 00:16:03 Benchmark Mode Cnt Score Error Units ArrayCopyBenchmark.benchSystemCopy0 thrpt 10 53.280 ± 0.162 ops/ns ArrayCopyBenchmark.benchSystemCopy1 thrpt 10 0.324 ± 0.005 ops/ns ArrayCopyBenchmark.benchSystemCopy2 thrpt 10 0.323 ± 0.001 ops/ns ArrayCopyBenchmark.benchSystemCopy3 thrpt 10 0.297 ± 0.005 ops/ns ArrayCopyBenchmark.benchSystemCopy4 thrpt 10 0.288 ± 0.001 ops/ns ArrayCopyBenchmark.benchSystemCopy5 thrpt 10 0.214 ± 0.003 ops/ns ArrayCopyBenchmark.benchUtilsCopy0 thrpt 10 324610102.194 ± 4578421.715 ops/ns ArrayCopyBenchmark.benchUtilsCopy1 thrpt 10 3.101 ± 0.063 ops/ns ArrayCopyBenchmark.benchUtilsCopy2 thrpt 10 0.812 ± 0.029 ops/ns ArrayCopyBenchmark.benchUtilsCopy3 thrpt 10 0.555 ± 0.003 ops/ns ArrayCopyBenchmark.benchUtilsCopy4 thrpt 10 0.289 ± 0.001 ops/ns EventHookBenchmark.benchControl thrpt 10 0.796 ± 0.036 ops/s EventHookBenchmark.benchHooked1 thrpt 10 0.759 ± 0.025 ops/s EventHookBenchmark.benchHooked2 thrpt 10 0.748 ± 0.047 ops/s EventHookBenchmark.benchInterp thrpt 10 0.832 ± 0.006 ops/s EventHookBenchmark.benchTraced thrpt 10 0.791 ± 0.067 ops/s FixnumCreationBenchmark.benchFixnumCreation thrpt 20 0.158 ± 0.008 ops/ns FixnumCreationBenchmark.benchStaticFib thrpt 20 61.613 ± 0.599 ops/s