-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathperformance_test.hpp
More file actions
25 lines (19 loc) · 916 Bytes
/
performance_test.hpp
File metadata and controls
25 lines (19 loc) · 916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef PERFORMANCE_TEST_HPP_INCLUDED
#define PERFORMANCE_TEST_HPP_INCLUDED
#include "config.hpp"
//---------------------------------------------------------------------
// valarray implementations
//---------------------------------------------------------------------
double time_naive_array(std::size_t size);
double time_expr_template_float(std::size_t size);
double time_expr_template_sse(std::size_t size);
double time_expr_template_avx(std::size_t size);
double time_expr_template_neon(std::size_t size);
//---------------------------------------------------------------------
// C array implementations
//---------------------------------------------------------------------
double time_float_arrays(std::size_t size);
double time_sse_arrays(std::size_t elements);
double time_avx_arrays(std::size_t elements);
double time_neon_arrays(std::size_t elements);
#endif // end PERFORMANCE_TEST_HPP_INCLUDED