-
Notifications
You must be signed in to change notification settings - Fork 177
/
Copy pathmd-workbench.h
42 lines (34 loc) · 964 Bytes
/
md-workbench.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef IOR_MD_WORKBENCH_H
#define IOR_MD_WORKBENCH_H
#include <stdint.h>
#include <stdio.h>
#include <mpi.h>
typedef struct{
float min;
float q1;
float median;
float q3;
float q90;
float q99;
float max;
} time_statistics_t;
// statistics for running a single phase
typedef struct{ // NOTE: if this type is changed, adjust end_phase() !!!
time_statistics_t stats_create;
time_statistics_t stats_read;
time_statistics_t stats_stat;
time_statistics_t stats_delete;
int errors;
double rate;
double max_op_time;
double runtime;
uint64_t iterations_done;
} mdworkbench_result_t;
typedef struct{
int count; // the number of results
int errors;
mdworkbench_result_t result[];
} mdworkbench_results_t;
// @Return The first statistics returned are precreate, then iteration many benchmark runs, the last is cleanup
mdworkbench_results_t* md_workbench_run(int argc, char ** argv, MPI_Comm world_com, FILE * out_logfile);
#endif