DarkDimius / clashofthelambdas

Microbenchmarking collections via the functional APIs of Java 8, Scala, C#, F#.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clash of the Lambdas

Microbenchmarking collection, functional APIs of the VM multiparadigm languages Java 8, Scala, C#, F# on Windows and on Linux.

The results are discussed in our ICOOOLPS'14 workshop paper:

http://www.di.uoa.gr/~biboudis/clashofthelambdas.pdf

A snapshot of the benchmarks in zip-file:

http://www.di.uoa.gr/~biboudis/clashofthelambdas-icooolps14-benchmarks.zip

To run the benchmarking suite as is, you will need a system with approximately 769mb of free space for heap allocation. Regarding execution time, a run on a single platform takes approximately 15-20 minutes on an Intel Core i5.

Setting up on Windows

  • Install JDK8. Create the JAVA_HOME env variable (for maven to work) and add to Path the JAVA_HOME\bin directory
  • Install Gnu Make for Windows and put the bin directory to PATH
  • Extract Maven and put the bin directory to PATH
  • Install the C#, F# compilers (if you have Visual Studio 2013 you already have them)
  • Update the paths in Makefile

Setting up on Ubuntu

Running the microbenchmarks

  • Compile all tests with make
  • Clean with make clean
  • Compile a specific suite with make {java, csharp, fsharp, scala}
  • Run microbenchmarks with make bench-{java, csharp, fsharp, scala} (e.g., make bench-java).

Processing the results

If you want to process the unified results we offer a gawk script (that also makes use of the dos2unix command to convert windows result file encoding).

  • Run the benchmark suite with on both windows and linux with make bench > results.{windows, linux} (any filename).
  • See the unified results for all languages, platforms and benchmarks (the comma separated values are benchmark, mean, mean error, sdev) by running ./process results.linux results.windows > results.processed (make the script executable first).

Team

@biboudis, @NickPalladinos and Y. Smaragdakis

Footnotes:

  1. A small utility that was factored out as a seperate project.

About

Microbenchmarking collections via the functional APIs of Java 8, Scala, C#, F#.

License:MIT License


Languages

Language:C# 37.0%Language:Scala 20.3%Language:F# 18.0%Language:Java 14.1%Language:Awk 10.6%