Changeset ebb0835 in mainline for uspace/app/hbench/fs
- 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/fs
- Files:
-
- 2 edited
-
dirread.c (modified) (2 diffs)
-
fileread.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/hbench/fs/dirread.c
ra787081 rebb0835 43 43 * that the corresponding blocks would be cached after first run. 44 44 */ 45 static bool runner( stopwatch_t *stopwatch, uint64_t size,45 static bool runner(benchmeter_t *meter, uint64_t size, 46 46 char *error, size_t error_size) 47 47 { 48 48 const char *path = bench_param_get("dirname", "/"); 49 49 50 stopwatch_start(stopwatch);50 benchmeter_start(meter); 51 51 for (uint64_t i = 0; i < size; i++) { 52 52 DIR *dir = opendir(path); … … 64 64 closedir(dir); 65 65 } 66 stopwatch_stop(stopwatch);66 benchmeter_stop(meter); 67 67 68 68 return true; -
uspace/app/hbench/fs/fileread.c
ra787081 rebb0835 44 44 * corresponding blocks would be cached after first run. 45 45 */ 46 static bool runner( stopwatch_t *stopwatch, uint64_t size,46 static bool runner(benchmeter_t *meter, uint64_t size, 47 47 char *error, size_t error_size) 48 48 { … … 65 65 } 66 66 67 stopwatch_start(stopwatch);67 benchmeter_start(meter); 68 68 for (uint64_t i = 0; i < size; i++) { 69 69 int rc = fseek(file, 0, SEEK_SET); … … 84 84 } 85 85 } 86 stopwatch_stop(stopwatch);86 benchmeter_stop(meter); 87 87 88 88 leave_close:
Note:
See TracChangeset
for help on using the changeset viewer.
