Go beats Rust in speed and even C++ sometimes in this interesting performance matchup

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

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • countwords

    Discontinued Playing with counting word frequencies (and performance) in various languages.

  • There is a parallel.go in the repo, but it's much more complicated (5x as long) and doesn't perform as well as the optimized single-threaded version. https://github.com/benhoyt/countwords/blob/master/parallel.go

  • llfio

    P1031 low level file i/o and filesystem library for the C++ standard

  • The problem of reading from stdin itself is a fraught venture, as you discovered with ios::sync_with_stdio, and this goes much further. If trying to think about performance, you would typically end up using solutions like LLFIO instead of working within the current standard library and there are similar performance-oriented I/O libraries for many languages.

  • 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