Skip to content

Instantly share code, notes, and snippets.

@AndreasMadsen
Created July 21, 2012 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndreasMadsen/3156185 to your computer and use it in GitHub Desktop.
Save AndreasMadsen/3156185 to your computer and use it in GitHub Desktop.
is v8 in 0.8 slow?

#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
@AndreasMadsen
Copy link
Author

So for some reason my code is 10% slower on node 0.8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment