C++20 std::format is 2x slower than std::fstream?

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

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

    Discontinued C++20 Concepts IO library which is 10x faster than stdio and iostream (by tearosccebe)

  • concat and concatln function generates std::string. https://github.com/tearosccebe/fast_io/blob/master/benchmark/0002.file_io_tsc/time/iobuf_file_concatln.cc

  • dtoa-benchmark

    Discontinued C++ double-to-string conversion benchmark

  • https://github.com/tearosccebe/dtoa-benchmark/blob/master/src/fast_io_scientific.cpp on your buffer

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • nanobench

    Simple, fast, accurate single-header microbenchmarking functionality for C++11/14/17/20

  • I've tried again with your latest changes and decided to use https://github.com/martinus/nanobench for a better benchmark and got the following output:

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