rossabaker / benchmarks Goto Github PK
View Code? Open in Web Editor NEWBenchmarks for various Scala streaming and task libraries
License: Apache License 2.0
Benchmarks for various Scala streaming and task libraries
License: Apache License 2.0
While investigating the performance regression of Monix 2.1.x, I discovered that ForkJoinPool
(which is backing Scala's own global
execution context) has been migrated in the implementation of Scala 2.12 to java.util.concurrent.ForkJoinPool
and that this implementation has lower throughput than the one in Scala 2.11.
The difference is quite significant and at this point I'm actually considering introducing my own implementation of ForkJoinPool
in Monix, because unless I'm not horribly mistaken, this isn't a problem that the Scala developers can fix in the standard library, unless they bring back scala.concurrent.forkjoin.ForkJoinPool
. Anyway, I've started this issue on my own end:
monix/monix#281 (comment)
That said, when benchmarking, it's important to not measure the wrong thing. At least the tests that are forking threads should be backed by the same thread-pool implementation, otherwise you end up measuring the performance of the underlying thread-pools. For example I don't know what FS2 does, but Scalaz definitely doesn't use by default a ForkJoinPool
for its Task.fork
or Task.apply
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.