JSFiddle - React, Tailwind, and code Playground
JavaScript
$.getScript("https://raw.github.com/bestiejs/benchmark.js/master/benchmark.js", function(){
var suite = new Benchmark.Suite;
suite.add('case#1', function() {
function f(){}
})
.add('case#2', function() {
var f = function(){};
})
.on('cycle', function(event, bench) {
console.log(String(bench));
})
.on('complete', function() {
console.log('Fastest is ' + this.filter('fastest').pluck('name'));
})
.run({ 'async': true });
});