When you do `go run qsort.go` you are also timing the time taken by Golang to build/compile the code.
I suspect the same applies to `cargo run`
You should do something like; `go build . && time ./qsort`
You should do something like; `go build . && time ./qsort`
It’s obviously just a rough estimate / comparison otherwise it’d be using hyperfine or something along those lines.
[1] https://github.com/kprotty/zap/blob/blog/benchmarks/rust/ray...