Permalink
Browse files

add more bm results to readme

  • Loading branch information...
1 parent 91f026a commit 8a27a53dd4fc479112bb81dc7660901c9df44cd6 @tj committed Jul 12, 2012
Showing with 26 additions and 5 deletions.
  1. +23 −3 Readme.md
  2. +3 −2 benchmark/pub.js
View
@@ -150,12 +150,32 @@ ss.codec.define('json', {
## Performance
- I haven't profiled or tuned anything yet but so far for a single byte message:
+ I haven't profiled or tuned anything yet but so far for on my macbook air:
+
+1 byte messages:
+
+```
+
+ mean: 61986 ops/s
+ median: 45512 ops/s
+
+```
+
+ 1k messages:
+
+```
+
+ mean: 56958 ops/s
+ median: 45995 ops/s
+
+```
+
+ 20k messages:
```
- mean: 58291 ops/s
- median: 47675 ops/s
+ mean: 7597 ops/s
+ median: 4819 ops/s
```
View
@@ -5,8 +5,9 @@ var ss = require('..')
sock.bind(3000);
console.log('pub bound');
-var perTick = 100;
-var buf = new Buffer('a');
+var perTick = 1;
+var buf = new Buffer('hello');
+console.log('sending %d byte messages', buf.length);
function more() {
for (var i = 0; i < perTick; ++i) sock.send(buf);

0 comments on commit 8a27a53

Please sign in to comment.