Files
react/perf/tests/sanity.js
T
2015-02-13 02:43:42 +03:00

18 lines
325 B
JavaScript

if (typeof exports === 'undefined') {
exports = {};
}
/*http://benchmarkjs.com/docs#options*/
exports.name = 'Trivial benchmark to verify that everything works';
exports.setup = function() {
var foo;
};
exports.fn = function() {
foo = Array(999).join('Howdy!\n');
};
exports.teardown = function() {
foo = null;
};