/* * */ #define ENABLE_TIMER #include "framework/DynamicExtension.h" #include "shard/VPTree.h" #include "query/knn.h" #include "framework/interface/Record.h" #include "psu-util/timer.h" constexpr size_t D = 100; typedef de::EuclidPoint Rec; typedef de::VPTree Shard; typedef de::knn::Query Q; typedef de::DynamicExtension Ext; int main(int argc, char **argv) { std::vector hwms = {1000l, 2000l, 4000l, 10000l}; std::vector lwms = {.1, .2, .3, .4, .5, .6, .7, .8, .9}; size_t n = 1000000; std::vector records(n); for (size_t i=0; iinsert(records[i])) { _mm_pause(); } } TIMER_STOP(); auto insert_time = TIMER_RESULT(); double insert_throughput = (double) n / (double) insert_time * 1e9; fprintf(stdout, "%ld\t%ld\t%lf\n", lwm, hwm, insert_throughput); extension->print_scheduler_statistics(); fflush(stdout); delete extension; } } }