Skip to content

dryganets/switch-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Switch performance micro-benchmark

The JMH micro benchmark to evaluate switch vs HashMap branching performance for Strings. The test intentionally checks only the worst case scenario - access to the last item.

In order to compile the code you need to install Maven.

Building:

mvn clean install

Running:

java -jar target/benchmarks.jar

About

Microbenchmark of switch vs HashMap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages