]> zoso.dev Git - buffer.git/commitdiff
exclude node buffer from one buffer perf test
authorFeross Aboukhadijeh <feross@feross.org>
Wed, 29 Oct 2014 04:11:32 +0000 (21:11 -0700)
committerFeross Aboukhadijeh <feross@feross.org>
Wed, 29 Oct 2014 04:11:32 +0000 (21:11 -0700)
perf/new.js

index a35d296ce17a122d28e75bb75335307a699839f8..59356274e895ed35f9b9561e3d2d2b3e38b85df0 100644 (file)
@@ -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)
   })