diff options
Diffstat (limited to 'expt_0726.cpp')
| -rw-r--r-- | expt_0726.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/expt_0726.cpp b/expt_0726.cpp index 5b37df3..1043044 100644 --- a/expt_0726.cpp +++ b/expt_0726.cpp @@ -44,14 +44,14 @@ inline void store_into_vector(unsigned long long value) { } constexpr long sample_length = 1024; -constexpr long test_size = 2048; +constexpr long test_size = 1000000; void mian(long scale_size) { const long split_size = test_size * scale_size; result_storage.clear(); result_storage.resize(split_size, false); - const auto slice_size = 1.0 / (long double)(split_size); + const auto slice_size = 1.0 / (double)(split_size); for (long i = 0; i < test_size; i++) { auto index = (int)safe_ceil(sample_cdf(original_vector[i + sample_length]) / @@ -102,6 +102,7 @@ int main(int _argc, char const *_argv[]) { } assert(element_size_max == 1); printf("scale: %d, time spend: %ldms\n", i, - duration_cast<std::chrono::microseconds>((end - start)).count()); + std::chrono::duration_cast<std::chrono::microseconds>(end - start) + .count()); } }
\ No newline at end of file |
