UNPKG

luxon

Version:
16 lines (13 loc) 575 B
// This is a placeholder. My actual needs: // * a gulp wrapper that supports Benchmark 2.x // * a way of collecting suites together and running them all // * a good way to do all this with Babel // But for now we'll just run this file I guess var Benchmark = require('benchmark'); var DateTime = require('../build/cjs/luxon').DateTime; new Benchmark.Suite() .add('fromString', () => DateTime.fromString('1982/05/25 09:10:11.445', 'yyyy/MM/dd HH:mm:ss.SSS')) .add('local', () => DateTime.local()) .on('cycle', event => console.log(String(event.target))) .run();