C++ Mathematical Expression Toolkit (ExprTk) release
|
#include <cstdio>
#include <fstream>
#include <limits>
#include <string>
#include <vector>
#include "exprtk.hpp"
Go to the source code of this file.
Classes | |
struct | test_expression |
Typedefs | |
typedef double | numeric_type |
Functions | |
template<typename T > | |
T | run_expression_benchmark (const std::size_t vec_size, const std::string &expr_string, const std::size_t &cost) |
template<typename T > | |
void | run_benchmark (const std::size_t &vec_size) |
template<typename T > | |
void | run_file_benchmark (const std::size_t &vec_size, const std::string &file_name) |
int | main (int argc, char *argv[]) |
Variables | |
const test_expression | global_expression_list [] |
const std::size_t | global_expression_list_size = sizeof(global_expression_list) / sizeof(test_expression) |
const std::size_t | rounds = 2000 |
typedef double numeric_type |
Definition at line 91 of file exprtk_vector_benchmark.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 217 of file exprtk_vector_benchmark.cpp.
void run_benchmark | ( | const std::size_t & | vec_size | ) |
Definition at line 155 of file exprtk_vector_benchmark.cpp.
References test_expression::cost, global_expression_list, global_expression_list_size, and rounds.
T run_expression_benchmark | ( | const std::size_t | vec_size, |
const std::string & | expr_string, | ||
const std::size_t & | cost | ||
) |
Definition at line 94 of file exprtk_vector_benchmark.cpp.
References rounds, exprtk::timer::start(), exprtk::timer::stop(), and exprtk::timer::time().
void run_file_benchmark | ( | const std::size_t & | vec_size, |
const std::string & | file_name | ||
) |
Definition at line 183 of file exprtk_vector_benchmark.cpp.
const test_expression global_expression_list[] |
Definition at line 40 of file exprtk_vector_benchmark.cpp.
Referenced by run_benchmark().
const std::size_t global_expression_list_size = sizeof(global_expression_list) / sizeof(test_expression) |
Definition at line 87 of file exprtk_vector_benchmark.cpp.
Referenced by run_benchmark().
const std::size_t rounds = 2000 |
Definition at line 89 of file exprtk_vector_benchmark.cpp.
Referenced by run_benchmark(), and run_expression_benchmark().