You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by "vlsi (via GitHub)" <gi...@apache.org> on 2023/06/02 11:20:53 UTC
[GitHub] [jmeter] vlsi opened a new pull request, #5960: test: Added OpenJDK JMH for creating microbenchmarks in JMeter code
vlsi opened a new pull request, #5960:
URL: https://github.com/apache/jmeter/pull/5960
## Description
This enables creating benchmark for tracking performance of low-level code.
The way to add a benchmark is to add src/jmh folder (side by side with src/main). Then benchmark jar can be generated with ./gradlew jmhJar, or the benchmark can be executed from IDE if there's a corresponding main method.
See ResultCollectorBenchmark
## Motivation and Context
We need measure performance for optimizations we make. For instance, improvements to properties, synchronization, etc should be validated.
Here's a sample output for `ResultCollectorBenchmark`:
```
Benchmark (success) Mode Cnt Score Error Units
ResultCollectorBenchmark.isSampleWanted true avgt 5 7,039 ± 0,160 ns/op
ResultCollectorBenchmark.isSampleWanted:·gc.alloc.rate true avgt 5 ≈ 10⁻³ MB/sec
ResultCollectorBenchmark.isSampleWanted:·gc.alloc.rate.norm true avgt 5 ≈ 10⁻⁶ B/op
ResultCollectorBenchmark.isSampleWanted:·gc.count true avgt 5 ≈ 0 counts
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [jmeter] vlsi merged pull request #5960: test: Add OpenJDK JMH for creating microbenchmarks in JMeter code
Posted by "vlsi (via GitHub)" <gi...@apache.org>.
vlsi merged PR #5960:
URL: https://github.com/apache/jmeter/pull/5960
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org