Add Benchmark to App. TODO: Test Benchmark in other kernels.
This commit is contained in:
parent
1e9d974476
commit
0715aedceb
|
@ -199,16 +199,16 @@ static int __attribute__((noinline)) benchmark_body(int rpt, int len) {
|
|||
uint8_t *p;
|
||||
// display result
|
||||
p = (uint8_t *)&h0;
|
||||
printf("%2.2x%2.2x%2.2x%2.2x", p[0], p[1], p[2], p[3]);
|
||||
// printf("%2.2x%2.2x%2.2x%2.2x", p[0], p[1], p[2], p[3]);
|
||||
|
||||
p = (uint8_t *)&h1;
|
||||
printf("%2.2x%2.2x%2.2x%2.2x", p[0], p[1], p[2], p[3]);
|
||||
// printf("%2.2x%2.2x%2.2x%2.2x", p[0], p[1], p[2], p[3]);
|
||||
|
||||
p = (uint8_t *)&h2;
|
||||
printf("%2.2x%2.2x%2.2x%2.2x", p[0], p[1], p[2], p[3]);
|
||||
// printf("%2.2x%2.2x%2.2x%2.2x", p[0], p[1], p[2], p[3]);
|
||||
|
||||
p = (uint8_t *)&h3;
|
||||
printf("%2.2x%2.2x%2.2x%2.2x\n", p[0], p[1], p[2], p[3]);
|
||||
// printf("%2.2x%2.2x%2.2x%2.2x\n", p[0], p[1], p[2], p[3]);
|
||||
}
|
||||
|
||||
return h0 ^ h1 ^ h2 ^ h3;
|
||||
|
|
Loading…
Reference in New Issue