Great lib. I think it could be interesting to have it follow (or some higher level module) the built-in zlib node module interface. This way it can be used as replacement in browserify without too many trouble.
On Saturday, 15 March 2014 19:10:41 UTC+1, Vitaly Puzrin wrote: > > > https://github.com/nodeca/pako > > I'm glad to say, that "pako" is now officially released. That's a zlib > port to javascript, for those guys, who need inflate / deflate / gzip / > ungzip in browser. > Of cause, it also works in node.js (but browsers are the main target). > > As i said in preview announce, that was experiment to understand how fast > modern javascript can be. See last benchmarks: > > --- > node v0.10.26, 1mb sample: > > deflate-dankogai x 4.74 ops/sec ±0.68% (15 runs sampled) > deflate-gildas x 4.61 ops/sec ±1.73% (15 runs sampled) > deflate-imaya x 3.10 ops/sec ±3.73% (11 runs sampled) > ! deflate-pako x 7.11 ops/sec ±0.26% (21 runs sampled) > deflate-pako-untyped x 4.34 ops/sec ±1.35% (14 runs sampled) > deflate-zlib x 14.34 ops/sec ±2.90% (68 runs sampled) > inflate-dankogai x 31.29 ops/sec ±0.72% (56 runs sampled) > inflate-imaya x 30.49 ops/sec ±0.84% (53 runs sampled) > ! inflate-pako x 70.00 ops/sec ±1.60% (71 runs sampled) > inflate-pako-untyped x 17.67 ops/sec ±1.27% (33 runs sampled) > inflate-zlib x 70.82 ops/sec ±1.69% (81 runs sampled) > > node v0.11.11, 1mb sample: > > deflate-dankogai x 5.61 ops/sec ±0.30% (17 runs sampled) > deflate-gildas x 4.97 ops/sec ±5.68% (16 runs sampled) > deflate-imaya x 3.53 ops/sec ±4.19% (12 runs sampled) > ! deflate-pako x 11.52 ops/sec ±0.23% (32 runs sampled) > deflate-pako-untyped x 5.12 ops/sec ±1.44% (17 runs sampled) > deflate-zlib x 14.33 ops/sec ±3.34% (63 runs sampled) > inflate-dankogai x 42.96 ops/sec ±0.19% (57 runs sampled) > inflate-imaya x 85.05 ops/sec ±1.07% (71 runs sampled) > ! inflate-pako x 97.58 ops/sec ±0.69% (80 runs sampled) > inflate-pako-untyped x 18.06 ops/sec ±0.65% (56 runs sampled) > inflate-zlib x 60.60 ops/sec ±2.04% (67 runs sampled) > --- > > Note, that in node 0.11 (with more fresh v8) pako inflate is faster than > native zlib binding. > Probably, because marshalling is not free. > > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
