comparing algorithm perf.



Hi all,

I would like to compare the perf of two algorithms written in C.

I feel that time-based method are not enough reliable (for instance time (1) gives different results for the same program).

So, I would like to do a comparison based on the number of CPU instructions required to process the same data in both cases.

profil (2) seems to be a good starting point, unfortunatly, I miss some code sample to use it...

Regards
Thierry

.