Permalink
Browse files

Add buffer_creation benchmark

  • Loading branch information...
1 parent 293809b commit 12a169e8ff4036e160dbdc605eb9f15eae933b47 @ry ry committed Aug 19, 2010
Showing with 12 additions and 0 deletions.
  1. +6 −0 benchmark/buffer_creation.js
  2. +6 −0 benchmark/string_creation.js
@@ -0,0 +1,6 @@
+
+
+for (var i = 0; i < 9000000; i++) {
+ b = new Buffer(10);
+ b[1] = 2
+}
@@ -0,0 +1,6 @@
+
+
+for (var i = 0; i < 9000000; i++) {
+ s = '01234567890';
+ s[1] = "a";
+}

0 comments on commit 12a169e

Please sign in to comment.