New Freecell Solver gcc-4.5.0 vs. LLVM+clang Benchmark
Tzafrir Cohen
tzafrir at cohens.org.il
Tue Feb 1 14:16:13 IST 2011
On Tue, Feb 01, 2011 at 12:49:00PM +0200, Elazar Leibovich wrote:
> The program they tested[1] is strictly CPU bound. BTW, standard deviation
> wouldn't work as well, but it shows (I think) that there's no such think as
> "ideal minimal runtime".
>
> [1]
> static int i = 0, j = 0, k = 0;
> int main() {
> int g = 0, inc = 1;
> for (; g<65536; g++) {
> i += inc;
> j += inc;
> k += inc;
> }
> return 0;
> }
>
> [2] http://www-plan.cs.colorado.edu/diwan/asplos09.pdf
That program is CPU-bound, but the time it runs is short enough for the
size of the environment to actually mean something.
--
Tzafrir Cohen | tzafrir at jabber.org | VIM is
http://tzafrir.org.il | | a Mutt's
tzafrir at cohens.org.il | | best
tzafrir at debian.org | | friend
More information about the Linux-il
mailing list