Registry / testing / junit-benchmarks

junit-benchmarks

JSON →
library0.7.2javamavenunverified

A framework for writing performance micro-benchmarks using JUnit4 annotations.

<dependency> <groupId>com.carrotsearch</groupId> <artifactId>junit-benchmarks</artifactId> <version>0.7.2</version> </dependency>
INSTALL
IMPORT
SIG · JUNIT-BENCHMARKS
J
junit-benchmarks
testingjavav0.7.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BenchmarkRule
com.carrotsearch.junitbenchmarks.BenchmarkRule

Use BenchmarkRule to measure test execution time.

import com.carrotsearch.junitbenchmarks.BenchmarkRule; import org.junit.Rule; import org.junit.Test; public class MyBenchmark { @Rule public BenchmarkRule benchmarkRun = new BenchmarkRule(); @Test public void testMethod() { // benchmark code } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.7.2latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
junit-benchmarks — mvn dependency:get junit-benchmarks · libregistry