summaryrefslogtreecommitdiff
path: root/expt_0726.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'expt_0726.cpp')
-rw-r--r--expt_0726.cpp22
1 files changed, 20 insertions, 2 deletions
diff --git a/expt_0726.cpp b/expt_0726.cpp
index 1043044..397bc90 100644
--- a/expt_0726.cpp
+++ b/expt_0726.cpp
@@ -6,7 +6,7 @@
#include <iostream>
#include <vector>
-constexpr size_t length = 1048576;
+constexpr size_t length = 2097152;
std::vector<unsigned long long> population_vector, sample_vector,
original_vector;
// std::vector<std::vector<unsigned long long>> result_storage;
@@ -105,4 +105,22 @@ int main(int _argc, char const *_argv[]) {
std::chrono::duration_cast<std::chrono::microseconds>(end - start)
.count());
}
-} \ No newline at end of file
+}
+/*
+ * Sample output:
+scale: 2, time spend: 6749258ms
+scale: 3, time spend: 1721671ms
+scale: 4, time spend: 611112ms
+scale: 5, time spend: 353036ms
+scale: 6, time spend: 266654ms
+scale: 7, time spend: 267346ms
+scale: 8, time spend: 267377ms
+scale: 9, time spend: 260396ms
+scale: 10, time spend: 267724ms
+scale: 11, time spend: 263023ms
+scale: 12, time spend: 270249ms
+scale: 13, time spend: 265440ms
+scale: 14, time spend: 266876ms
+scale: 15, time spend: 270683ms
+scale: 16, time spend: 273216ms
+ */ \ No newline at end of file