[pipepar] Default to speedup bench for template

Change default mode from stage time measurement to speedup measurement.

Previously, each stage featured a sleep whose length is proportional to
a fixed total time divided by the number of cores involve in the
computation multiplied to the number of packets handled in order to
measure the length in time of one stage. That is, for a number of core
nc, a number of packets np and a total time T, the time spent to sleep
was t=T/(nc*np). By fixing both the number of cores and the total time,
it was thus possible to measure the time needed to deal with one packets
in one stage.

Now, the default mode is to not do any sleep and thus have a computation
whose complexity is inversely proportional to the number of cores. By
varying the number of cores, it is thus possible to measure the speedup.
This commit is contained in:
Thomas Preud'homme 2012-09-07 16:47:18 +02:00
parent eab2df2a38
commit 16117c551a
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@
//#define NB_CORES 12; /* Quad Hexa */
#endif
//#define NOSLEEP
#define NOSLEEP
typedef unsigned long data_t;