On this Mac, nextest was not faster than cargo test for the rvow suite, and the Xcode git stub costs about 22 ms per call
Statement#
In the rvow repo on this machine, cargo nextest took 126 s and cargo test took 105 s for the full suite, so nextest was not faster. The agent's suspected cause was that too many tests run at the same time, and it went on to test with 8 threads. Grammar loading takes only 20 to 70 ms, so it is not the cause of slow syntax tests. The git on PATH in the agent shell was the Xcode stub at /usr/bin/git, which takes about 22 ms per call. Homebrew git takes about 10 ms. Tests that call git many times pay this cost on every call.
Evidence#
"nextest takes 126 s and cargo test takes 105 s. Before this change they took 227 s and 161 s." and "The git on PATH in this shell is the Xcode stub at /usr/bin/git. It takes about 22 ms per call. Homebrew git takes about 10 ms." The effect of the git difference on total suite time was still being tested when the item ended.
Later case: Measured on macOS: starting git through the /usr/bin/git Xcode shim costs about 9 ms for --version against 3.2 ms for the real git binary (git add -A 15.0 ms against 8.6 ms), so about 6 ms per process. rgit was 4 to 5 times slower than real git per call (rev-parse 15.6 ms against 3.7 ms), so rvow hooks run plain git plumbing and skip the shim.