4 ms·
To be fair, it's usually like 5% slower. But I also don't usually have control over the flags if I'm writing a library.
by overgard 5y ago
To be fair, it's usually like 5% slower. But I also don't usually have control over the flags if I'm writing a library.
- umanwizard 5y agoI’d be curious to know what benchmarks you’re using on which O0 is only 5% slower. I suspect your program must be almost entirely IO-bound, if this is the case. In that case, Python, Ruby, or shell probably wouldn’t be much slower either.
- overgard 5y agoWriting games, I've rarely seen the optimizer do anything of substantial use.