Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1123 → Rev 1122

/demos/trunk/perf/perf1.c
16,11 → 16,11
 
/**
------------
CVS : $Id: perf1.c,v 1.2 2003-01-07 17:10:18 pj Exp $
CVS : $Id: perf1.c,v 1.1 2002-11-11 08:24:49 pj Exp $
 
File: $File$
Revision: $Revision: 1.2 $
Last update: $Date: 2003-01-07 17:10:18 $
Revision: $Revision: 1.1 $
Last update: $Date: 2002-11-11 08:24:49 $
------------
 
Performance test 1:
32,9 → 32,6
the test have to be compiled with the one shot timer, and it does not
use any init file.
 
NOTE: after the task_sleep() removal, the test may be "not so correct".
That is because also the task end is accounted into the EDF time.
 
**/
 
/*
124,7 → 121,7
kern_cli();
/* timespec read time */
for (i=0; i<TIMESPEC_N; i++) {
t[i] = kern_gettime(NULL);
t[i] = ll_gettime(TIME_EXACT, NULL);
}
kern_sti();
 
161,7 → 158,7
 
for (;;) {
for (i=0; i<RR_N; i++);
task_endcycle();
task_sleep();
}
return 0;
}
170,9 → 167,11
{
int i;
 
for (i=0; i<EDF_N; i++)
task_endcycle();
 
for (;;) {
for (i=0; i<EDF_N; i++)
task_endcycle();
task_sleep();
}
return 0;
}