I took the “guessing game” from a tutorial and turned it into a simple benchmark. It plays against itself to guess the first million integers. The thing is… I’ve got the “same” algorithm in Rust and in Go, and I don’t know why the Rust version is much slower (2.93 seconds vs 0.25 on my laptop).
Am I making obvious mistakes?
BTW, first post and first contact with Rust, so… O:)