Giter VIP home page Giter VIP logo

dombench's Introduction

A benchmark tool for DOM implememtations in Node.js

TL;DR

  • dom.js is about 1.75x faster than jsdom
  • domino is ~2.2x faster than dom.js and ~3.9x faster than jsdom

Running the tests

$node benchmark
Run DOM benchmarks.

Options:
  --impl, -i  which DOM implementation to use [jsdom|domino|domjs]
  --num, -n   how often to run each test
  --grep, -g  only run tests matching this pattern
  --debug     output the result of the first test run
  --help, -?  display this help message

jsdom

$node benchmark -i jsdom
Node v0.5.10: Running each test 1500 time(s) backed by jsdom.
append: 875ms
empty: 559ms
parse: 2710ms
serialize: 62ms
weld: 10239ms
--------------
total: 14452ms

dom.js

$node --harmony_proxies --harmony_weakmaps benchmark -i domjs
Node v0.5.10: Running each test 1500 time(s) backed by domjs.
append: 569ms
empty: 463ms
parse: 2161ms
serialize: 71ms
weld: 4947ms
--------------
total: 8223ms

domino

$node benchmark -i domino
Node v0.5.10: Running each test 1500 time(s) backed by domino.
append: 160ms
empty: 108ms
parse: 1071ms
serialize: 19ms
weld: 2302ms
--------------
total: 3669ms

dombench's People

Contributors

fgnass avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.