min-bench

    1.0.2 • Public • Published

    min-bench

    Build status NPM version Downloads Dependency Status

    Test coverage Gittip

    Simple benchmark for javascript code

    Installation

    npm i min-bench

    Usage

    var b = require('min-bench')
     
    b('code in with', function(n) {
        for (var i = 0; i < n; i++) {
            with (Math) {
                var a = floor(1.234)
            }
        }
    })
     
    // =>
    // code in with 645.59 ns/op

    see more in demo.js

    License

    License

    Install

    npm i min-bench

    DownloadsWeekly Downloads

    2

    Version

    1.0.2

    License

    ISC

    Last publish

    Collaborators

    • ftft1885