Skip to content

Instantly share code, notes, and snippets.

@michalspondr
michalspondr / influxdb-perftest.cc
Created June 10, 2019 12:56
Performance test of writing to InfluxDB
#include <iostream>
#include "include/InfluxDBFactory.h"
#include "include/Transport.h"
#include "include/Point.h"
using namespace influxdb;
int main() {
const std::size_t batch_size = 15000;
int point_count = 54000000; // number of write points
//
// Marching Cubes Example Program
// by Cory Bloyd (corysama@yahoo.com)
//
// A simple, portable and complete implementation of the Marching Cubes
// and Marching Tetrahedrons algorithms in a single source file.
// There are many ways that this code could be made faster, but the
// intent is for the code to be easy to understand.
//
// For a description of the algorithm go to