4 ms·
> Just creating a file with dummy test like > if (2 * 2 != 5) { @panic("fail"); } > And running `zig test file.zig -OReleaseSafe` takes a couple seconds on my
by defen 4mo ago
> Just creating a file with dummy test like
> if (2 * 2 != 5) { @panic("fail"); }
> And running `zig test file.zig -OReleaseSafe` takes a couple seconds on my computer.
What kind of computer are you on? I just ran that test (latest master build, first run):
~ % time zig test file.zig -OReleaseSafe
file.zig:1:17: error: expected type expression, found '{'
if (2 * 2 != 5) { @panic("fail"); }
^
zig test file.zig -OReleaseSafe 0.03s user 0.44s system 505% cpu 0.094 total
Granted I'm on an M4 Mac but I wouldn't expect another system to be 20x slower.
- ozgrakkurt 4mo agoI’m on ryzen 7600 cpu and linux cachyos. Edit: I just realised you have a compilation error so the compiler isn't doing much work
- defen 4mo agoI used exactly what you posted; should I make an empty hello-world type of file instead?