yrnkrn / zapcc

zapcc is a caching C++ compiler based on clang, designed to perform faster compilations
Other
1.25k stars 61 forks source link

Add a comparison benchmark to ccache #2

Closed udnaan closed 6 years ago

yrnkrn commented 6 years ago

ccache works completely different to zapcc so I'm not sure this is a fair comparison to either.

udnaan commented 6 years ago

Fair enough. Is there another tool that is more relevant for benchmark comparison?

yrnkrn commented 6 years ago

Precompiled headers & unity builds are closer in "spirit". Each has its limitations, though.

See discussions on Phoronix: https://www.phoronix.com/forums/forum/software/programming-compilers/936682-zapcc-1-0-compiler-announced https://www.phoronix.com/forums/forum/phoronix/latest-phoronix-articles/1031070-zapcc-caching-c-compiler-open-sourced

and Ycombinator: https://news.ycombinator.com/item?id=9592601 https://news.ycombinator.com/item?id=13044005 https://news.ycombinator.com/item?id=17332330

udnaan commented 6 years ago

I would think that a caching tool such as ccache would be much closer, given zapcc's own pitch as a caching tool. In my own experience, unless if you are using a header heavy library, precompile headers don't help.

Either way, good luck with the tool. I'll keep a watch just in case.