2020-11-02 20:56:28 +03:00
|
|
|
#ifndef IOR_MD_WORKBENCH_H
|
|
|
|
#define IOR_MD_WORKBENCH_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
2020-11-02 22:23:13 +03:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <mpi.h>
|
2020-11-02 20:56:28 +03:00
|
|
|
|
|
|
|
typedef struct{
|
|
|
|
float min;
|
|
|
|
float q1;
|
|
|
|
float median;
|
|
|
|
float q3;
|
|
|
|
float q90;
|
|
|
|
float q99;
|
|
|
|
float max;
|
|
|
|
} time_statistics_t;
|
|
|
|
|
2020-11-04 23:25:27 +03:00
|
|
|
|
2020-11-02 20:56:28 +03:00
|
|
|
// 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;
|
|
|
|
|
2020-11-04 23:25:27 +03:00
|
|
|
int errors;
|
|
|
|
double rate;
|
2020-11-02 20:56:28 +03:00
|
|
|
double max_op_time;
|
2020-11-04 23:25:27 +03:00
|
|
|
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;
|
2020-11-02 20:56:28 +03:00
|
|
|
|
2020-11-02 23:12:15 +03:00
|
|
|
// @Return The first statistics returned are precreate, then iteration many benchmark runs, the last is cleanup
|
2020-11-04 23:25:27 +03:00
|
|
|
mdworkbench_results_t* md_workbench_run(int argc, char ** argv, MPI_Comm world_com, FILE * out_logfile);
|
2020-11-02 20:56:28 +03:00
|
|
|
|
|
|
|
#endif
|