UNPKG

418 BJavaScriptView Raw
1var convex = require('./');
2var Benchmark = require('benchmark');
3var fs = require('fs');
4
5var fc = JSON.parse(fs.readFileSync(__dirname+'/test/fixtures/in/elevation1.geojson'));
6var suite = new Benchmark.Suite('turf-convex');
7suite
8 .add('turf-convex',function () {
9 convex(fc);
10 })
11 .on('cycle', function (event) {
12 console.log(String(event.target));
13 })
14 .on('complete', function () {
15
16 })
17 .run();
\No newline at end of file