Threads vs Coroutines - ParallelMap Performance

This page summarizes the projects mentioned and recommended in the original post on /r/Kotlin

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • jmh

    https://openjdk.org/projects/code-tools/jmh

  • In the last episode we implemented a parallelMap operation using streams, raw threads, a threadpool with futures, and coroutines. At first glance the raw threads was quickest, followed by futures, coroutines and then streams. In this, part 56 of an exploration of where a Test Driven Development implementation of the Gilded Rose stock control system might take us in Kotlin, we investigate the performance of the different functions further, in particular digging down into why coroutines seem to be slow and finding a way to speed them up. We also find a way to use a particular ForkJoinPool to run the streams code, making it as fast as the others (bar the raw threads). Frankly we only use very rough benchmarks here, with no statistical testing except 'it looks like'. That's OK for gross differences, but is highly suspect when deciding which of two similarly performant approaches is faster. For that check out JMH and you could watch my video from KotlinConf 2017

  • gilded-rose-tdd

    A TDD implementation of the Gilded Rose stock control system

  • You can see the code on GitHub

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Como rodar um servidor NodeJS em um smartphone Android

    1 project | dev.to | 10 May 2024
  • Which tricks do you use to write less code?

    2 projects | news.ycombinator.com | 10 May 2024
  • Huawei breaks free from Google ecosystem with homegrown HarmonyOS

    1 project | news.ycombinator.com | 10 May 2024
  • Building an ATM Project with JSP and Servlets in Step-by-Step Guide 2024

    1 project | dev.to | 9 May 2024
  • Agile – A Sierra On-Line AGI game interpreter for the web

    1 project | news.ycombinator.com | 9 May 2024