mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
18 lines
325 B
JavaScript
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;
|
|
};
|