@@ -36,7 +36,8 @@ using namespace hmdf;
3636using namespace std ::chrono;
3737
3838constexpr std::size_t ALIGNMENT = 64 ;
39- constexpr std::size_t SIZE = 300000000 ;
39+ // constexpr std::size_t SIZE = 300000000;
40+ constexpr std::size_t SIZE = 10000000 ;
4041
4142typedef StdDataFrame64<time_t > MyDataFrame;
4243
@@ -57,7 +58,7 @@ int main(int, char *[]) {
5758
5859 std::cout << " Data generation/load time: "
5960 << double (duration_cast<microseconds>(second - first).count ()) / 1000000.0
60- << std::endl;
61+ << " secs " << std::endl;
6162
6263 MeanVisitor<double , time_t > n_mv;
6364 VarVisitor<double , time_t > ln_vv;
@@ -81,14 +82,25 @@ int main(int, char *[]) {
8182
8283 const auto fourth = high_resolution_clock::now ();
8384
85+ // df.sort<double, double, double>("log_normal", sort_spec::ascen,
86+ // "exponential", sort_spec::ascen);
87+ // std::cout << "1001th value in normal column: "
88+ // << df.get_column<double>("normal")[1001] << std::endl;
89+
90+ const auto fifth = high_resolution_clock::now ();
91+
8492 std::cout << " Calculation time: "
8593 << double (duration_cast<microseconds>(third - second).count ()) / 1000000.0
86- << ' \n '
94+ << " secs \n "
8795 << " Selection time: "
8896 << double (duration_cast<microseconds>(fourth - third).count ()) / 1000000.0
89- << ' \n '
97+ << " secs\n "
98+ // << "Sorting time: "
99+ // << double(duration_cast<microseconds>(fifth - fourth).count()) / 1000000.0
100+ // << " secs\n"
90101 << " Overall time: "
91- << double (duration_cast<microseconds>(fourth - first).count ()) / 1000000.0
102+ << double (duration_cast<microseconds>(fifth - first).count ()) / 1000000.0
103+ << " secs"
92104 << std::endl;
93105 return (0 );
94106}
0 commit comments