niklas-heer / speed-comparison

A repo which compares the speed of different programming languages.
https://niklas-heer.github.io/speed-comparison
MIT License
475 stars 76 forks source link

Nim has compilation flags equivalent to "-O3" for c/c++ #33

Closed francescoalemanno closed 1 year ago

francescoalemanno commented 1 year ago

Hello! I think that Nim with these flags can reach c/c++ performance range :) there is also "-d:release", but omitting those is the equivalent of a debug build.

niklas-heer commented 1 year ago

Thank you very much @francescoalemanno for your contribution! Looking at the results of the CI Nim now runs in ~6ms from previously ~83ms. Congratulations! 🎉

niklas-heer commented 1 year ago

Here are the new results: https://niklas-heer.github.io/speed-comparison/pages/2022-10-15T214923.html