Changeset ebb0835 in mainline for uspace/app/hbench/malloc
- Timestamp:
- 2019-01-07T12:56:22Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c2db02a
- Parents:
- a787081
- Location:
- uspace/app/hbench/malloc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/hbench/malloc/malloc1.c
ra787081 rebb0835 36 36 #include "../hbench.h" 37 37 38 static bool runner( stopwatch_t *stopwatch, uint64_t size,38 static bool runner(benchmeter_t *meter, uint64_t size, 39 39 char *error, size_t error_size) 40 40 { 41 stopwatch_start(stopwatch);41 benchmeter_start(meter); 42 42 for (uint64_t i = 0; i < size; i++) { 43 43 void *p = malloc(1); … … 50 50 free(p); 51 51 } 52 stopwatch_stop(stopwatch);52 benchmeter_stop(meter); 53 53 54 54 return true; -
uspace/app/hbench/malloc/malloc2.c
ra787081 rebb0835 35 35 #include "../hbench.h" 36 36 37 static bool runner( stopwatch_t *stopwatch, uint64_t niter,37 static bool runner(benchmeter_t *meter, uint64_t niter, 38 38 char *error, size_t error_size) 39 39 { 40 stopwatch_start(stopwatch);40 benchmeter_start(meter); 41 41 42 42 void **p = malloc(niter * sizeof(void *)); … … 67 67 free(p); 68 68 69 stopwatch_stop(stopwatch);69 benchmeter_stop(meter); 70 70 71 71 return true;
Note:
See TracChangeset
for help on using the changeset viewer.