|
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 |
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 |
| int main | ( | int | argc, |
| char * | argv[] ) |
Definition at line 217 of file exprtk_vector_benchmark.cpp.
References run_benchmark(), and run_file_benchmark().
| void run_benchmark | ( | const std::size_t & | vec_size | ) |
Definition at line 155 of file exprtk_vector_benchmark.cpp.
References global_expression_list, global_expression_list_size, rounds, and run_expression_benchmark().
Referenced by main().
| 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().
Referenced by run_benchmark(), and run_file_benchmark().
| 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.
References run_expression_benchmark().
Referenced by main().
| const test_expression global_expression_list[] |
Definition at line 40 of file exprtk_vector_benchmark.cpp.
| 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.
| const std::size_t rounds = 2000 |
Definition at line 89 of file exprtk_vector_benchmark.cpp.