Changeset ab936440 in mainline for uspace/app/hbench/benchlist.c
- Timestamp:
- 2019-02-12T20:42:42Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f31ca47
- Parents:
- 7f7817a9 (diff), 4805495 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Matthieu Riolo <matthieu.riolo@…> (2019-02-12 20:26:18)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-02-12 20:42:42)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/hbench/benchlist.c
r7f7817a9 rab936440 1 1 /* 2 2 * Copyright (c) 2018 Jiri Svoboda 3 * Copyright (c) 2018 Vojtech Horky 3 4 * All rights reserved. 4 5 * … … 27 28 */ 28 29 29 /** @addtogroup perf30 /** @addtogroup hbench 30 31 * @{ 31 32 */ 32 /** @file 33 /** 34 * @file 33 35 */ 34 36 35 #i fndef PERF_H_36 # define PERF_H_37 #include <stdlib.h> 38 #include "hbench.h" 37 39 38 #include <stdbool.h> 40 benchmark_t *benchmarks[] = { 41 &benchmark_dir_read, 42 &benchmark_fibril_mutex, 43 &benchmark_file_read, 44 &benchmark_malloc1, 45 &benchmark_malloc2, 46 &benchmark_ns_ping, 47 &benchmark_ping_pong 48 }; 39 49 40 typedef const char *(*benchmark_entry_t)(void); 41 42 typedef struct { 43 const char *name; 44 const char *desc; 45 benchmark_entry_t entry; 46 } benchmark_t; 47 48 extern const char *bench_malloc1(void); 49 extern const char *bench_malloc2(void); 50 extern const char *bench_ns_ping(void); 51 extern const char *bench_ping_pong(void); 52 53 extern benchmark_t benchmarks[]; 54 55 #endif 50 size_t benchmark_count = sizeof(benchmarks) / sizeof(benchmarks[0]); 56 51 57 52 /** @}
Note:
See TracChangeset
for help on using the changeset viewer.