Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 853 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 853 Bytes

#Improving Scala Futures

This repository is a working repository to improve and optimize Scala Futures.

To run the JMH benches:

sbt
project benches
jmh:runMain scala.future.BenchRunner JMH_ARGUMENTS_GO_HERE .*NAME_OF_BENCH.*

Examples:

To run the JMH benchmark for completing Promises:

jmh:runMain scala.future.BenchRunner -p pool=fie -p threads=1 -p recursion=8192 -i 20 -wi 15 -f1 -t1 CompleteBenchmark*

To run the JMH benchmark for adding callbacks to Futures:

jmh:runMain scala.future.BenchRunner -p pool=fie -p threads=1 -p recursion=8192 -i 20 -wi 15 -f1 -t1 CallbackBenchmark*

Please open Issues or submit Pull Requests to propose more benchmarks so we can attempt to ensure that there are no regressions and so that we can quantify optimization improvements across different hardware architectures and OS setups.