niklas-heer / speed-comparison

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

No compilation optimization for the benchmark? #10

Closed JasonkayZK closed 2 years ago

JasonkayZK commented 3 years ago

I think the benchmark should be run under compilation optimization. But it seems that C 、Rust 、Nim or some other languages did not do this.

So, there is no wonder to come up with the conclusion that the rust is slower than PHP, which is ridiculous. 😞

niklas-heer commented 3 years ago

For me this repo was more about trying out how to setup a comparison rather than focusing on the results.

I'm currently not working actively on this anymore. But feel free to continue.

niklas-heer commented 3 years ago

I recently received a pull request to optimize rust. If you want to contribute feel free to do something similar.

https://github.com/niklas-heer/speed-comparison/pull/9

niklas-heer commented 2 years ago

@JasonkayZK I used a new method with more isolation of the test runs. The results are different. I'm closing this issue for now.

plot