gpderetta 3 days ago

Google test and mock are quite powerful but are a big hit at both compile time and runtime, which matters for quick edit-compile-fix loops.

I still go back and forth on whether google test and mock are worth it.

Google benchmark is also nice.

2
rangestransform 2 days ago

> big hit at both compile time and runtime, which matters for quick edit-compile-fix loops

honestly if you write C++ for work, there's no excuse for your company to not give you the beefiest dev machine that money can reasonably buy. given that rust exists, I think "get a faster computer" is a totally valid answer to build times, especially now that skylake malaise era is over and CPUs are getting faster

badsectoracula 2 days ago

> given that rust exists, I think "get a faster computer" is a totally valid answer to build times

I find this amusing because one of the main reasons i avoid Rust (in the sense that i prefer to build things written in other languages if possible - i don't mind if someone else uses it and gives me a binary/library i can use - and it never went beyond "i might check this at some point, sometime, maybe" in my mind) is the build times compared to most other compilers :-P.

Also, at least personally, if i get a faster computer i want my workflow to be faster.

tmtvl 2 days ago

You may want to add a '/s' at the end of your post there, because sarcasm doesn't really translate on the internet. The only way I can tell it's sarcasm is because nobody would really go 'throw away the old stuff, buy new stuff, waste more, pollute the oceans, consume, CONSUME!!!'.

rangestransform 2 days ago

> 640k should be enough for everyone

jimmaswell 3 days ago

Does it not support only running some or no tests? I only run the full test suite rarely, close to releases.