GithubHelp home page GithubHelp logo

hzoo / web-tooling-benchmark Goto Github PK

View Code? Open in Web Editor NEW

This project forked from v8/web-tooling-benchmark

1.0 1.0 0.0 6.08 MB

JavaScript Benchmark for common Web Developer workloads

Home Page: https://v8.github.io/web-tooling-benchmark/

License: Other

JavaScript 97.32% HTML 0.78% CSS 1.90%

web-tooling-benchmark's Introduction

Web Tooling Benchmark

Build Status styled with prettier

This is a benchmark suite designed to measure the JavaScript related workloads commonly used by Web Developers nowadays, for example the core workloads in popular tools like Babel or TypeScript. It's the explicit goal to measure only the JavaScript performance aspect, which is affected by the JavaScript engine, and not measure I/O or other unrelated aspects.

See the in-depth analysis for a detailed description of the tests included in this benchmark suite.

The latest browser version of the benchmark is available at https://v8.github.io/web-tooling-benchmark/.

Building

This was tested with Node 6, Node 7 and Node 8.

To build the benchmark suite, run

$ npm install

assuming that you have a working Node.js installation. Once the command is done, it produces a bundled version that is suitable to run in JS shells (i.e. d8, jsc or jsshell) in dist/cli.js and another bundle in dist/browser.js that is used by the browser version in dist/index.html.

Running

You can either run the benchmark suite directly via Node, i.e. like this:

$ node dist/cli.js
Running Web Tooling Benchmark 0.3.1...
--------------------------------------
         acorn:  9.19 runs/sec
         babel:  6.74 runs/sec
       babylon:  8.72 runs/sec
         buble:  7.67 runs/sec
          chai: 13.28 runs/sec
  coffeescript:  6.80 runs/sec
        espree:  5.45 runs/sec
       esprima:  7.67 runs/sec
        jshint:  8.41 runs/sec
         lebab:  8.88 runs/sec
       prepack:  8.81 runs/sec
      prettier: 11.21 runs/sec
    source-map: 17.22 runs/sec
    typescript: 10.70 runs/sec
     uglify-es: 20.16 runs/sec
     uglify-js:  8.22 runs/sec
--------------------------------------
Geometric mean:  9.37 runs/sec

Or you open a web browser and point it to dist/index.html, or you can use one of the engine JS shells (d8, jsc, ch or jsshell) to run the special bundle in dist/cli.js.

web-tooling-benchmark's People

Contributors

bmeurer avatar jhnns avatar mathiasbynens avatar tebbi avatar

Stargazers

 avatar

Watchers

 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.