Re:Ask HN: What's the largest amount of bad code you have ev...
by knuffced on Wednesday November 14, 2018 @11:13AM
(#18450941)
Tests in C/C++ run shockingly fast. I ported an application from Ruby to C++ and the tests ran in well under a second when it was taking 10+ seconds in Ruby. Granted because of C++'s type system there were fewer tests, but it was fast enough that I kept thinking something was wrong.
[ Parent
| on HN ]
Re:Ask HN: What's the largest amount of bad code you have ev...
by bufferoverflow on Wednesday November 14, 2018 @12:32PM
(#18451730)
It's because Ruby is only of the slowest languages out there, and C/C++ is usually #1-#2 on many benchmarks.
Re:Ask HN: What's the largest amount of bad code you have ev...
by maksimum on Wednesday November 14, 2018 @02:00PM
(#18452737)
Are you including the time to build/link the tests? This is especially true if you have a bunch of dependencies. Last time I worked on C++ tests most of my time was spent on getting the tests to link quickly. Managed to get it from 25 minutes to 1 minute. But I'd rather have spent that time actually writing more test cases, even if they took 10s to run.