mirror of
https://gitlab.uni-marburg.de/langbeid/powersort.git
synced 2025-01-22 19:55:44 +01:00
benchmark: docs
This commit is contained in:
parent
a262272b19
commit
72d668e0f9
@ -22,6 +22,7 @@ public class Main {
|
|||||||
for (SortEnum sortImplementation : sortImplementations) {
|
for (SortEnum sortImplementation : sortImplementations) {
|
||||||
Object[] sortInput = objectSupplier.getCopy();
|
Object[] sortInput = objectSupplier.getCopy();
|
||||||
|
|
||||||
|
// TODO: JVM warmup!
|
||||||
final long startNanos = System.nanoTime();
|
final long startNanos = System.nanoTime();
|
||||||
sortImplementation.get().sort(sortInput);
|
sortImplementation.get().sort(sortInput);
|
||||||
final long stopNanos = System.nanoTime();
|
final long stopNanos = System.nanoTime();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user