summaryrefslogtreecommitdiff
path: root/expt_0726.cpp
diff options
context:
space:
mode:
authorKunoiSayami <[email protected]>2022-08-02 18:45:00 +0800
committerKunoiSayami <[email protected]>2022-08-02 18:45:00 +0800
commit0e537b32ae8f80985d3fd6b898ad6151cd8ac86c (patch)
treeeebe523bc99743340d2fea52fb6d78897189e7b7 /expt_0726.cpp
parentfa0d606d8958d72220e2a5407314c80c5557a5f4 (diff)
feat: Implement expt_0729
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'expt_0726.cpp')
-rw-r--r--expt_0726.cpp7
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