Skip to content

Commit

Permalink
Update benchmark scripts.
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
mtth committed Nov 8, 2015
1 parent e877b30 commit d63b79a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion etc/benchmarks/scripts/encode/node-protobuf.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function loop() {
var n = 0;
var i, l, buf;
for (i = 0, l = objs.length; i < l; i++) {
buf = objs[i].encode().toArrayBuffer();
buf = objs[i].encode().toBuffer();
n += buf[0] + buf.length;
}
return n;
Expand Down
2 changes: 1 addition & 1 deletion etc/benchmarks/scripts/encode/node-pson.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function loop() {
var n = 0;
var i, l, buf;
for (i = 0, l = records.length; i < l; i++) {
buf = sPair.encode(records[i]);
buf = sPair.encode(records[i]).toBuffer();
n += buf[0] + buf.length;
}
return n;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"node": ">=0.11"
},
"scripts": {
"test": "mocha --ui tdd --no-deprecation",
"cover": "istanbul cover _mocha -- --ui tdd"
"test": "mocha --ui tdd --reporter dot",
"cover": "istanbul cover _mocha -- --ui tdd --reporter dot"
},
"devDependencies": {
"coveralls": "^2.11.4",
Expand Down

0 comments on commit d63b79a

Please sign in to comment.