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 { | ||||
| 
 | ||||
|     static long start; | ||||
|     static long end; | ||||
| 
 | ||||
|     static { | ||||
|         long start = System.nanoTime(); | ||||
|         ManualClassLoader.load(); | ||||
|         long end = System.nanoTime(); | ||||
|         System.out.println("Warm Up time : " + (end - start)); | ||||
|     } | ||||
| 
 | ||||
|     public static void main(String[] args) { | ||||
|         start = System.nanoTime(); | ||||
|         long start = System.nanoTime(); | ||||
|         ManualClassLoader.load(); | ||||
|         end = System.nanoTime(); | ||||
|         long end = System.nanoTime(); | ||||
|         System.out.println("Total time taken : " + (end - start)); | ||||
|     } | ||||
| 
 | ||||
| } | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user