Skip to content

Commit

Permalink
Speed up test-buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Mar 19, 2010
1 parent 90295d9 commit e014643
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/simple/test-buffer.js
Expand Up @@ -18,7 +18,7 @@ for (var i = 0; i < 1024; i++) {

var asciiString = "hello world";
var offset = 100;
for (var j = 0; j < 50000; j++) {
for (var j = 0; j < 500; j++) {

for (var i = 0; i < asciiString.length; i++) {
b[i] = asciiString.charCodeAt(i);
Expand All @@ -41,7 +41,7 @@ for (var j = 0; j < 50000; j++) {
}


for (var j = 0; j < 10000; j++) {
for (var j = 0; j < 100; j++) {
var slice = b.slice(100, 150);
assert.equal(50, slice.length);
for (var i = 0; i < 50; i++) {
Expand Down

0 comments on commit e014643

Please sign in to comment.