Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Add buffer_creation benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Aug 19, 2010
1 parent 293809b commit 12a169e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions benchmark/buffer_creation.js
@@ -0,0 +1,6 @@


for (var i = 0; i < 9000000; i++) {
b = new Buffer(10);
b[1] = 2
}
6 changes: 6 additions & 0 deletions benchmark/string_creation.js
@@ -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.