time-to-botec/squiggle/node_modules/@quri/squiggle-lang/benchmark/Benchmark_Helpers.bs.js

15 lines
315 B
JavaScript
Raw Normal View History

'use strict';
var Curry = require("@rescript/std/lib/js/curry.js");
function measure(name, f) {
var start = new Date().valueOf();
Curry._1(f, undefined);
var end = new Date().valueOf();
var duration = (end - start) / 1000;
console.log(duration, name);
}
exports.measure = measure;
/* No side effect */