{"repo":"niklas-heer/speed-comparison","free":true,"listed":false,"github":"https://github.com/niklas-heer/speed-comparison","clone":"git clone https://github.com/niklas-heer/speed-comparison.git","description":"A repo which compares the speed of different programming languages.","language":"Python","stars":743,"topics":["speed-comparison","golang","c","python","ruby","javascript","php","docker","nim-lang","swift"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"--- Speed comparison of programming languages This projects tries to compare the speed of different programming languages. In this project we don't really care about getting a precise calculation of pi. We only want to see how fast are the programming languages doing. It uses an implementation of the Leibniz formula for π to do the comparison. Here is a video which explains how it works: Calculating π by hand You can find the results here: https://niklas-heer.github.io/speed-comparison/ Disclaimer I'm no expert in all these languages, so take my results with a grain of salt. This is a microbenchmark. It can certainly give you some clue about a language, but it doesn't tell you the whole picture. Also the findings just show how good a language is (or can be) at loops and floating-point math, which is just a small subset of a programming language. You are also welcome to contribute and help me fix my possible horrible code in some languages. :smile: Rules The benchmark measures single-threaded computational performance . To keep comparisons fair: 1. No concurrency/parallelism : Implementations must be single-threaded. No multi-threading, async, or parallel processing. 2. SIMD is allowed but separate : SIMD optimizations (using wider registers) are permitted but should be separate targets (e.g., swift-simd , cpp-avx2 ) rather than replacing the standard implementation. 3. Standard language features : Use idiomatic code for the language. Compiler optimizations flags are fine. 4. ","default_branch":null,"files":null,"tree":[],"storefront":"/r/niklas-heer","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/niklas-heer/speed-comparison/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}