Milinda Pathirage’s Blog

Let the code talk for yourself!

Entries Tagged as 'algorithms'

Recursion, Non-Recursion and Tail Recursion Test using GCC -O2 optimization

August 20th, 2008 · 1 Comment · algorithms, c programming, programming

I got  very positive response for my previous post that published test results of Recursion algorithm efficiency testing.

Bluestorm and Alex has responsed to above post asking me to try gcc -O2 optimization level. I tried -O2 optimization and here is the results for factorial of 5 using different factorial algorithm implementations:

Here is the results for [...]

[Read more →]

Tags: