Where can I find good source code for benchmarking a specific compiler?

I want to determine which compiler is better on two different platforms. First, I want to know if SunCC or GCC generates the fastest code on a Solaris system. Then I would like to know if CCC or GCC generates the fastest code on an HP / UX system. Thank.

+3
source share
2 answers

Although there may be a universal compiler that is better than another ... I think that it usually comes down to your specific application. Take a small portion of your code, the kernel loop you want to be fast .. do a simple 10-line test around it ... and try your loop.

+3
source

, time.h, , . :

. , .

+1

Source: https://habr.com/ru/post/1747897/


All Articles