Crypto backtesting
Loading...
Searching...
No Matches
test.cxx
Go to the documentation of this file.
1#include "test.h"
2#include "utils.h"
3#include <benchmark/benchmark.h>
4
5void BM_to_series(benchmark::State &state) {
6 for (auto _ : state)
7 benchmark::DoNotOptimize(to_series(csv1));
8}
9
10void BM_to_series3(benchmark::State &state) {
11 for (auto _ : state)
12 benchmark::DoNotOptimize(to_series3(csv1));
13}
14
15void BM_to_series4(benchmark::State &state) {
16 for (auto _ : state)
17 benchmark::DoNotOptimize(to_series4(csv1));
18}
19
std::vector< std::vector< double > > to_series3(const std::string &csv)
Open a CSV file and return a vector of floating points for each row.
Definition file.cxx:90
std::vector< std::vector< double > > to_series(const std::string csv)
Open a CSV file and return a vector of floating points for each row.
Definition file.cxx:78
std::vector< std::vector< double > > to_series4(const std::string &csv)
Open a CSV file and return a vector of floating points for each row.
Definition file.cxx:119
void BM_to_series4(benchmark::State &state)
Definition test.cxx:15
void BM_to_series3(benchmark::State &state)
Definition test.cxx:10
BENCHMARK(BM_to_series)
void BM_to_series(benchmark::State &state)
Definition test.cxx:5
const auto csv1
Definition test.h:4