perflab finished

This commit is contained in:
2025-04-17 23:02:23 +08:00
parent ba21f80f3b
commit cc99d9b5d9
39 changed files with 1477 additions and 2007 deletions

View File

@@ -119,7 +119,7 @@ double fcyc(test_funct f, int *params)
if (clear_cache)
clear();
start_counter();
f(params);
f((long int*)params);
cyc = get_counter();
if (cyc > 0.0)
add_sample(cyc);
@@ -131,7 +131,7 @@ double fcyc(test_funct f, int *params)
clear();
start_counter();
for (i=0;i<MAX_ITER_TIMES;i++)
f(params);
f((long int *)params);
cyc = get_counter()/MAX_ITER_TIMES;
if (cyc > 0.0)
add_sample(cyc);