From: Feross Aboukhadijeh Date: Wed, 29 Oct 2014 04:11:32 +0000 (-0700) Subject: exclude node buffer from one buffer perf test X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=2355c59f6fa7c1f27a5930702747fc1df9821f8c;p=buffer.git exclude node buffer from one buffer perf test --- diff --git a/perf/new.js b/perf/new.js index a35d296..5935627 100644 --- a/perf/new.js +++ b/perf/new.js @@ -11,6 +11,8 @@ suite .add('Uint8Array#new(' + LENGTH + ')', function () { var buf = new Uint8Array(LENGTH) }) + +if (!process.browser) suite .add('NodeBuffer#new(' + LENGTH + ')', function () { var buf = new Buffer(LENGTH) })