Skip to content

rscai/java-collection-benchmark

Repository files navigation

Java Collections Benchmark

List

General List Implementation

./gradlew benchmark -PjmhInclude=ArrayListBenchmark,LinkedListBenchmark -PjmhResultsFile=list_general.txt

Concurrent List Implementation

1 Consumer 1 Producer

./gradlew benchmark -PjmhInclude=CopyOnWriteArrayListBenchmark,SynchronizedListBenchmark,VectorBenchmark -PjmhThreadGroups=1,1 -PjmhResultsFile=list_concurrent_c1_p1.txt

3 Consumer 1 Producer

./gradlew benchmark -PjmhInclude=CopyOnWriteArrayListBenchmark,SynchronizedListBenchmark,VectorBenchmark -PjmhThreadGroups=3,1 -PjmhResultsFile=list_concurrent_c3_p1.txt

7 Consumer 1 Producer

./gradlew benchmark -PjmhInclude=CopyOnWriteArrayListBenchmark,SynchronizedListBenchmark,VectorBenchmark -PjmhThreadGroups=7,1 -PjmhResultsFile=list_concurrent_c7_p1.txt

Map

./gradlew clean benchmark -PjmhInclude=HashMapBenchmark,LinkedHashMapBenchmark,TreeMapBenchmark -PjmhThreadGroups=1 -PjmhResultsFile=map_general.txt

Set

./gradlew clean benchmark -PjmhInclude=HashSetBenchmark,TreeSetBenchmark -PjmhThreadGroups=1 -PjmhResultsFile=set_general.txt

./gradlew clean benchmark -PjmhInclude=HashSetBenchmark,TreeSetBenchmark,HashMapBenchmark,LinkedHashMapBenchmark,TreeMapBenchmark -PjmhThreadGroups=1 -PjmhResultsFile=set_general.txt

About

Java Collection benchmarks wrote in JMH

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages