#Performance
See test/benchmark/compare.js for benchmark code.
Executed on cpu: 2.66 Ghz Intel Core i7
and node: v0.6.21-pre
.
Case | ms / run - less is better |
---|---|
a small document (693 B) | |
plates | 0.059 |
domstream - no cache | 0.0462 |
domstream - cache | 0.0214 |
a big document (5520 B) | |
plates | 0.3236 |
domstream - no cache | 0.2174 |
domstream - cache | 0.104 |
Executed on cpu: 2.66 Ghz Intel Core i7
and node: v0.8.4-pre
.
Case | ms / run - less is better |
---|---|
a small document (693 B) | |
plates | 0.0532 |
domstream - no cache | 0.0465 |
domstream - cache | 0.0259 |
a big document (5520 B) | |
plates | 0.2928 |
domstream - no cache | 0.2168 |
domstream - cache | 0.1162 |
So for some reason my code is 10% slower on
node 0.8
.