Monday, February 23, 2009

 

Eiffel versus C performance

Interesting thread on Eiffel Software mailing list. Basically the difference between C and Eiffel code is negligible when enabling the right optimisations:

Now I have found out what makes the difference. If I pass the array t be
sorted as an argument of the sort function instead of using an
attribute, I get a significant speed up of EiffelStudio.

  ES finalized(+inline-void+arg):  8.403 sec
  C/C++ with g++ -O3:              8.133 sec

The difference is marginal and no longer significant.


This page is powered by Blogger. Isn't yours?