GCC 4.1.0 Performance Benchmark

A guy on kerneltrap posted a small performance benchmark on the recent GCC versions (3.3.5, 3.4.4, 4.0.1, 4.1.0).

GCC 3.3.5: 85.2 µsec (17% slower)
GCC 3.4.4: 75.7 µsec (4% slower)
GCC 4.0.1: 81.5 µsec (12% slower)
GCC 4.1.0: 72.7 µsec (baseline)

Original post

Related posts:

  1. Java and C benchmark
  2. Linux Gets Automatic Tuning
  3. Linux Terminal Speed Performance Comparison
  4. Tomcat Performance: Linux faster than Windows
  5. MySQL Optimization and Performance Tips
  6. AMD DDR2 Linux Performance
  7. MySQL Performance Monitoring and Optimization Tools
  8. Optimize MySQL Performance With MySQLTuner
  9. Crack pdf password with pdfcrack
  10. Browse Faster Using a Local DNS Cache

Popular Related Items »

3 Comments »

  1. Tomasz Chmielewski said,

    March 15, 2006 @ 11:34

    Any more info on the benchmark? How was it tested?

    My own “benchmark” (bzip -9 bash) on a mipsel platform shows that gcc-4.1.0 generated bzip2 binary was about 5% slower than bzip2 generated with gcc-3.4.4.

  2. Claus Christensen said,

    March 15, 2006 @ 15:29

    I don’t now anymore about how he carried out the test, not even what gcc optimization parameters he used. I think I better do some testing myself.

    What gcc parameters did you use?

  3. Claus Christensen said,

    March 15, 2006 @ 20:03

    Here another GCC 4.1.0 benchmark from redeeman, that shows a performance gain:

    http://www.linuxin.dk/artikler/index.php?id=7510

    Towers of hanoi, gcc benchmark

    Compile time:
    3.4, c: 0.05s
    4.0, c: 0.05s
    4.1, c: 0.04s
    3.4, c++: 0.10s
    4.0, c++: 0.09s
    4.1, c++: 0.05s
    Conclusion: gcc 4.1 is faster to compile than previous versions

    Binary Sizes(Unstripped):
    3.4, c: 9161
    4.0, c: 9377
    4.1, c: 9161
    3.4, c++: 9476
    4.0, c++: 9508
    4.1, c++: 9327
    Conclusion: gcc 4.1 produces smaller binaries, most notably for c++

    Binary Sizes(Stripped):
    3.4, c: 4984
    4.0, c: 4992
    4.1, c: 4984
    3.4, c++: 5224
    4.0, c++: 5240
    4.1, c++: 4984
    Conclusion: Stripped binaries also smaller

    Execution time (with 32 bricks):
    3.4, c: 62.34s
    4.0, c: 37.90s
    4.1, c: 32.70s
    3.4, c++: 52.62s
    4.0, c++: 37.99s
    4.1, c++: 33.63s
    Conclusion: 4.1 is faster.

RSS feed for comments on this post · TrackBack URI

Leave a Comment