Resource efficient Thread Pools with Zig
Running the benchmarks locally (zig is fastest, but that&#x27;s probably expected)<p>zig (~1 week older than HEAD):<p><pre><code>    .&#x2F;zig-out&#x2F;bin&#x2F;qsort
    filling
    shuffling
    running
    took 177.46ms
</code></pre>
rust nightly:<p><pre><code>    cargo run --release --bin qsort
    warning: the cargo feature `edition2021` has been stabilized in the 1.56 release and is no longer necessary to be listed in the manifest
    See https:&#x2F;&#x2F;doc.rust-lang.org&#x2F;nightly&#x2F;cargo&#x2F;reference&#x2F;manifest.html#the-edition-field for more information about using this feature.
        Finished release [optimized] target(s) in 0.02s
        Running `target&#x2F;release&#x2F;qsort`
    filling
    shuffling
    running
    took 896.91656ms

    cargo run --release --bin rsort
    warning: the cargo feature `edition2021` has been stabilized in the 1.56 release and is no longer necessary to be listed in the manifest
    See https:&#x2F;&#x2F;doc.rust-lang.org&#x2F;nightly&#x2F;cargo&#x2F;reference&#x2F;manifest.html#the-edition-field for more information about using this feature.
    Finished release [optimized] target(s) in 0.02s
        Running `target&#x2F;release&#x2F;rsort`
    filling
    shuffling
    running
    took 212.190694ms
</code></pre>
go 1.16.3:<p><pre><code>    go run qsort.go
    filling
    shuffling
    running
    took 222.90356ms
</code></pre>
on macOS 11.5.2 with a 2.4 GHz 8-Core Intel Core i9