Skip to content

Instantly share code, notes, and snippets.

@gusakovgiorgi
Created February 16, 2020 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gusakovgiorgi/02e74c81a8516312c3ca3a569f5ef011 to your computer and use it in GitHub Desktop.
Save gusakovgiorgi/02e74c81a8516312c3ca3a569f5ef011 to your computer and use it in GitHub Desktop.
Java instanceof add and equals operators benchmarking
Benchmark Mode Cnt Score Error Units
CompareOperatorsBenchMark.add avgt 25 1.975 ± 0.066 ns/op
CompareOperatorsBenchMark.instanceOf avgt 25 2.029 ± 0.007 ns/op
CompareOperatorsBenchMark.notEqualsWithDouble avgt 25 2.281 ± 0.006 ns/op
CompareOperatorsBenchMark.notEqualsWithInt avgt 25 2.053 ± 0.012 ns/op
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment