test whole program

This commit is contained in:
2025-08-14 12:47:46 +01:00
parent 4fd334b21c
commit 1d445c9088
2 changed files with 16 additions and 4 deletions

View File

@@ -20,8 +20,8 @@ All rights reserved.
#include "malloc.h"
// #define malloc MALLOCCHERI
// #define free FREECHERI
#define malloc MALLOCCHERI
#define free FREECHERI
@@ -267,7 +267,7 @@ void * walk(void *param)
int main(int argc,char **argv)
{
clock_t tic = clock();
// INITREGULARALLOC();
INITREGULARALLOC();
//#ifdef DEBUG
printf("DEBUG:sizeof(struct l)=%ld\n",sizeof(struct l));
// #endif
@@ -316,7 +316,7 @@ printf("Elapsed build get here before ll: %f seconds\n", (double)(toc - tic) / C
tdata->root=root;
tdata->working_set_size=working_set_size;
clock_t tic2 = clock();
for (int i = 0; i < 8000; i++) {
for (int i = 0; i < 500; i++) {
walk((void*)tdata);
}
clock_t toc2 = clock();