Add Benchmark to App. TODO: Test Benchmark in other kernels.

This commit is contained in:
TXuian 2022-12-08 15:41:16 +08:00
parent 1e9d974476
commit 0715aedceb
1 changed files with 4 additions and 4 deletions

View File

@ -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;