as per suggestetion (#2120)
* moving jmh into libraries module * refactoring jmh * Update pom.xml * manual algorightm * with BM result * fix for space issue * Fixed indentation * change as per suggestion
This commit is contained in:
parent
2f652a2620
commit
b5077409f4
|
@ -2,18 +2,18 @@ package com.baeldung.jmh.warmup;
|
||||||
|
|
||||||
public class MainApplication {
|
public class MainApplication {
|
||||||
|
|
||||||
static long start;
|
|
||||||
static long end;
|
|
||||||
|
|
||||||
static {
|
static {
|
||||||
|
long start = System.nanoTime();
|
||||||
ManualClassLoader.load();
|
ManualClassLoader.load();
|
||||||
|
long end = System.nanoTime();
|
||||||
|
System.out.println("Warm Up time : " + (end - start));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
start = System.nanoTime();
|
long start = System.nanoTime();
|
||||||
ManualClassLoader.load();
|
ManualClassLoader.load();
|
||||||
end = System.nanoTime();
|
long end = System.nanoTime();
|
||||||
System.out.println("Total time taken : " + (end - start));
|
System.out.println("Total time taken : " + (end - start));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue