devongovett/coffeepack — Issue #5: Good stuff, but slower than JSON.stringify
Author: polidore
Created: 2011-11-09 03:02:18+00:00
State: open

I ran this test:

```coffeescript

msgpack = require 'coffeepack'
assert = require 'assert'

object =
name: 'tests'
numberes: [500,100,50]
dogs:
sasha: 'poodle'
riley:
muttComponents: ['lab','beagle']

console.time 'msgpack'
for num in [1..10000]
msgpack.unpack msgpack.pack(object)
console.timeEnd 'msgpack'

console.time 'json'
for num in [1..10000]
JSON.parse JSON.stringify(object)
console.timeEnd 'json'
```

With these results:
```
msgpack: 345ms
json: 52ms
```

wish the C powered msgpack would get up to speed with newer versions of node.