3 ms·
Probably want -Os (and strip afterwards) if you're interested in startup time. C is also 1ms. C++ has a big cxxrt that zig doesn't. FWIW c++ only takes 2ms o
by moonchild 7y ago
Probably want -Os (and strip afterwards) if you're interested in startup time. C is also 1ms. C++ has a big cxxrt that zig doesn't. FWIW c++ only takes 2ms on my (quite slow) machine.
- tomtomtom1 7y agowould ios_base::sync_with_stdio(false); also help?
- moonchild 7y agoIn my benchmark, the c++ version uses the c api (printf rather than cout), so it wouldn't make a difference.