News for hackers. Stuff that matters.
Re:Resource efficient Thread Pools with Zig by komuW on Monday September 13, 2021 @11:45AM (#28512939)
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`

Re:Resource efficient Thread Pools with Zig by Arnavion on Monday September 13, 2021 @06:37PM (#28517822)
The "took #ms" line is output of the program. It does not include compilation time.
Re:Resource efficient Thread Pools with Zig by masklinn on Monday September 13, 2021 @04:05PM (#28516110)
The same occurs with Rust, we can even see that the no-op recompilation takes about 20ms.

It’s obviously just a rough estimate / comparison otherwise it’d be using hyperfine or something along those lines.

Re:Resource efficient Thread Pools with Zig by nessex on Tuesday September 14, 2021 @02:00AM (#28520818)
This is not the case, it measures the time between two points in the code at runtime and prints that[1].

[1] https://github.com/kprotty/zap/blob/blog/benchmarks/rust/ray...