Skip to content

Commit

Permalink
Add an unimplemented utility for generating test datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonCampolattaro committed Aug 28, 2020
1 parent ea73c33 commit 7464db9
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
17 changes: 15 additions & 2 deletions Octree/benchmark/Octree/construction.cpp
Expand Up @@ -3,21 +3,34 @@

#include <iostream>
#include <fstream>
#include <chrono>

#include "util.h"

using std::chrono::high_resolution_clock;
using std::chrono::duration_cast;
using std::chrono::microseconds;

int main(int argc, char **argv) {

// Set output file
std::ofstream file;
file.open((argc > 1) ? argv[1] : "construction_benchmark.csv");

// Add header for CSV
file << "Number of Points,Build Time (ms) \n";

// Perform tests for various dataset sizes
for (size_t num_points = 10; num_points < 10000; num_points *= 1.1) {

std::cout << num_points << std::endl;
auto start = high_resolution_clock::now();

// TODO

auto end = high_resolution_clock::now();

file << num_points << ",";
file << 5 << "\n";
file << duration_cast<microseconds>(end - start).count() << "\n";
}

file.close();
Expand Down
16 changes: 16 additions & 0 deletions Octree/benchmark/Octree/util.h
@@ -0,0 +1,16 @@
#ifndef OCTREE_UTIL_H
#define OCTREE_UTIL_H

//
// Created by jackcamp on 8/28/20.
//

#include <CGAL/Point_set_3.h>


template <class Kernel>
CGAL::Point_set_3<typename Kernel::Point_3> generate(size_t num_points) {

}

#endif //OCTREE_UTIL_H

0 comments on commit 7464db9

Please sign in to comment.