Skip to content

JosePaumard/jdk8-stream-rx-comparison-reloaded

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project contains de source code of the bench I have presented at JavaOne 2015 and Devoxx 2015 (available here: https://www.youtube.com/watch?v=fabN6HNZ2qY, minus the GC Collections part). It compares the performances of the implementations of the "Shakespeare plays Scrabble" kata using the GC Collections, RxJava and Java 8 Stream API frameworks.

It is just a copy of jdk8-stream-rx-comparison under the Apache 2.0 licence.

This bench has no other purpose than to show different performances on the chosen problem, please, do not take it as a general bench, and do not draw conclusions that could be wrong on other use cases.

It is built on JMH, the standard tool used to measure performances in Java.

You need Maven to build and run this bench.

$ mvn clean install

This creates a benchmark.jar file in your target directory. This jar contains what needs to be run to run the benchmark.

$ java -jar target/benchmark.jar

This runs the benchmark and prints out the result on the console. Of course, the execution of this benchmark has very little chance to produce the same result as the one I showed in my talks.

This bench uses two data files: ospd.txt and words.shakespeare.txt. They can be freely downloaded from Robert Sedgewick page here: http://introcs.cs.princeton.edu/java/data/. By the way, there are other very interesting data sets on this page.

Those two data sets files are under the copyright of their authors, and provided for convenience only.

About

A copy of jdk8-stream-rx-comparison under an Apache 2.0 licence.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages