Skip to content

Instantly share code, notes, and snippets.

@doom369
Created September 7, 2020 07:41
Show Gist options
  • Save doom369/856ea3c40e5c9c379f9f657baea3244d to your computer and use it in GitHub Desktop.
Save doom369/856ea3c40e5c9c379f9f657baea3244d to your computer and use it in GitHub Desktop.
JDK 11.0.8, OpenJDK 64-Bit Server VM, 11.0.8+10
```
Benchmark Mode Cnt Score Error Units
EnumValueOf.enumMap avgt 50 7.800 ± 0.097 ns/op
EnumValueOf.enumSwitch avgt 50 19.734 ± 0.350 ns/op
EnumValueOf.enumValueOf avgt 50 9.292 ± 0.826 ns/op
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment