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

Added support for vectoriation in rust #81

Closed eternalfrustation closed 1 year ago

eternalfrustation commented 1 year ago

I have unraveled the loop and eliminated a variable so that the compiler could vectorize the loop better, this resulted in a roughly 35% speed increase

niklas-heer commented 1 year ago

combined_results

niklas-heer commented 1 year ago

@eternalfrustation thank you for your contribution!