C++ vs Python: Performance Benchmark Comparison
Summary
This article presents benchmark comparisons between C++ and Python, focusing on performance metrics across various test programs (fannkuch-redux, nbody, nsieve, spectral-norm). It includes notes on file naming conventions indicating multi-threading, intrinsics usage, and FFI usage, as well as caveats about timing measurements for non-parallelized programs with GC or JIT overhead.
Source
Key quotes
· 3 pulled-m in a file name stands for multi-threading or multi-processing
-i in a file name stands for direct intrinsics usage
(You may find time < time(user) + time(sys) for some non-parallelized programs, the overhead is from GC or JIT compiler, which are allowed to take advantage of multi-cores as that's more close to real-world scenarios.)
You might also wanna read
Python Performance Benchmarks: Essential Metrics for Developers
This article provides a comprehensive cheat sheet of performance metrics and memory usage data for Python developers, covering practical ben
Python 3.14 Performance Benchmarks: Speed Improvements and Analysis
This article presents benchmark performance testing results for the newly released Python 3.14 programming language, comparing it against pr
Cross-Language Benchmark Implementations: Are-we-fast-yet Suite in Oberon, C++, C, Pascal, Micron and Luon
This article presents a GitHub repository containing implementations of the 'Are-we-fast-yet' benchmark suite across multiple programming la
Understanding CPU Branch Prediction and Branchless Programming in C++
This article explains CPU branch prediction in the context of C++ performance optimization. It covers how modern CPUs use pipelining to exec
towardsdev.com·14d agoUnderstanding Dataflow Graphs for C++ Performance Analysis
This article provides a comprehensive introduction to dataflow graphs as a tool for understanding and optimizing C++ code performance. The a
Python 3.15 JIT Compiler Achieves Performance Goals Ahead of Schedule
The article reports that Python 3.15's JIT compiler development is back on track and has achieved its performance goals ahead of schedule. T

Comments
Sign in to join the conversation.
No comments yet. Be the first.