pi benchmark #190

Closed
opened 2026-01-06 00:40:04 +00:00 by navicore · 1 comment
navicore commented 2026-01-06 00:40:04 +00:00 (Migrated from github.com)

add a benchmark for calculating pi similar to https://www.linkedin.com/posts/thomas-hansen-ainiro_python-is-malware-c-is-380-times-share-7413905545340047362-APUC/?utm_source=share&utm_medium=member_desktop&rcm=ACoAAAC5Ie0B5ZuVIJwipkpAtM1LNA4qsHP8oI0

Benchmarking programming languages using the Leibniz formula for calculating π

  1. C++ (clang++) version 21.1. median time: 223.9ms
  2. C# (SIMD) version 10.0.101. median time: 227.0ms
    ...
  3. C# version 10.0.101. median time 1.01s
    ...
  4. Python (CPython) version 3.14.2 median time: 86.32s

227 milliseconds for C# and 86 seconds for Python, good Lord. C# running on .NET10 and using SIMD accelerated types is, like, 380 time faster then Python. Using standard types, only about 86 times.

add a benchmark for calculating pi similar to https://www.linkedin.com/posts/thomas-hansen-ainiro_python-is-malware-c-is-380-times-share-7413905545340047362-APUC/?utm_source=share&utm_medium=member_desktop&rcm=ACoAAAC5Ie0B5ZuVIJwipkpAtM1LNA4qsHP8oI0 Benchmarking programming languages using the Leibniz formula for calculating π 1. C++ (clang++) version 21.1. median time: 223.9ms 2. C# (SIMD) version 10.0.101. median time: 227.0ms ... 38. C# version 10.0.101. median time 1.01s ... 62. Python (CPython) version 3.14.2 median time: 86.32s 227 milliseconds for C# and 86 seconds for Python, good Lord. C# running on .NET10 and using SIMD accelerated types is, like, 380 time faster then Python. Using standard types, only about 86 times.
navicore commented 2026-01-06 03:40:46 +00:00 (Migrated from github.com)
https://github.com/navicore/patch-seq/pull/191
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
navicore/patch-seq#190
No description provided.