Subversion Repositories shark

Compare Revisions

Regard whitespace Rev 1120 → Rev 1123

/demos/trunk/perf/perf3.c
16,11 → 16,11
 
/**
------------
CVS : $Id: perf3.c,v 1.1 2002-11-11 08:24:49 pj Exp $
CVS : $Id: perf3.c,v 1.2 2003-01-07 17:10:18 pj Exp $
 
File: $File$
Revision: $Revision: 1.1 $
Last update: $Date: 2002-11-11 08:24:49 $
Revision: $Revision: 1.2 $
Last update: $Date: 2003-01-07 17:10:18 $
------------
 
Performance Test 3:
311,7 → 311,7
TIME delta;
 
// get the current time
ll_gettime(TIME_EXACT, &t);
kern_gettime(&t);
 
// compute the delta
SUBTIMESPEC(&t, &last_random_time, &sub);
/demos/trunk/perf/perf1.c
16,11 → 16,11
 
/**
------------
CVS : $Id: perf1.c,v 1.1 2002-11-11 08:24:49 pj Exp $
CVS : $Id: perf1.c,v 1.2 2003-01-07 17:10:18 pj Exp $
 
File: $File$
Revision: $Revision: 1.1 $
Last update: $Date: 2002-11-11 08:24:49 $
Revision: $Revision: 1.2 $
Last update: $Date: 2003-01-07 17:10:18 $
------------
 
Performance test 1:
32,6 → 32,9
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.
 
**/
 
/*
121,7 → 124,7
kern_cli();
/* timespec read time */
for (i=0; i<TIMESPEC_N; i++) {
t[i] = ll_gettime(TIME_EXACT, NULL);
t[i] = kern_gettime(NULL);
}
kern_sti();
 
158,7 → 161,7
 
for (;;) {
for (i=0; i<RR_N; i++);
task_sleep();
task_endcycle();
}
return 0;
}
167,11 → 170,9
{
int i;
 
for (;;) {
for (i=0; i<EDF_N; i++)
task_endcycle();
task_sleep();
}
 
return 0;
}