Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
moonchild
· 6y ago · 0 comments
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.
Comments
[–]
tomtomtom1
6y ago
would ios_base::sync_with_stdio(false); also help?
[–]
moonchild
OP
6y ago
In my benchmark, the c++ version uses the c api (printf rather than cout), so it wouldn't make a difference.