Recently I came across yet another "micro benchmark" and I wanted to participate by submitting my rust solution. The goal is to produce the most amount of primes in the same time.
My Rust solution (requires bitvec 0.22.1)
In my machine my Rust code runs twice as slow, just wondering where I am losing in the optimization game. I'm having issues with my machine in setting up
perf currently so I can't provide the flamegraph yet.
g++ -O3, v: 10.2.0
cargo build --release, v 1.51
Source: Software Drag Racing: C++ vs C# vs Python - Which Will Win? - YouTube (Check description for the git repo)