Created
October 28, 2013 21:08
-
-
Save vyazelenko/7204728 to your computer and use it in GitHub Desktop.
Copy benchmark sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@GenerateMicroBenchmark | |
public Object copyFieldByFieldGetFieldsEveryTime() { | |
return FieldsCopy.INSTANCE.copy(); | |
} | |
@GenerateMicroBenchmark | |
public Object copyFieldByFieldUseCacheFields() { | |
return CachedFieldsCopy.INSTANCE.copy(); | |
} | |
@GenerateMicroBenchmark | |
public Object copyByClone() { | |
return CloneCopy.INSTANCE.copy(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment