-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutil.h
22 lines (17 loc) · 912 Bytes
/
util.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef PQ_BENCHMARKS_UTIL_H
#define PQ_BENCHMARKS_UTIL_H
#include <vector>
#include <cstdint>
const int ITERATIONS = 10;
std::vector<int64_t> sign_times;
std::vector<int64_t> verify_times;
void get_average_sign_time(unsigned long long &average_sign_time, std::vector<int64_t> &sign_times);
void get_average_verify_time(unsigned long long &average_verify_time, std::vector<int64_t> &verify_times);
void get_stddev_sign(unsigned long long &stddev_sign_time, std::vector<int64_t> &sign_times);
void get_stddev_verify(unsigned long long &stddev_verify_time, std::vector<int64_t> &verify_times);
void record_results(unsigned long long average_sign_time,
unsigned long long average_verify_time,
unsigned long long stddev_sign_time,
unsigned long long stddev_verify_time,
std::string output_file_name);
#endif //PQ_BENCHMARKS_UTIL_H