5.1.4.3 : Class/Table implementation performances comparison



Figure 3 : Left panel : total averaged time for the class and table implementation function. Right panel : averaged time to compute one single element (or particle).



When we compare speed of the class implementation and the speed of the table implementation we get several results.

First, the -O0 on the table implementation is 5 times faster than the class one even if this option is not supposed to optimise the code!

The -O3 option is 4 times faster in the table implementation than in the class one !

Even the -O2 on table implementation is faster than the -O3 on class implementation.