Sha256: a02251b0f9e5ae3baf80c17004113b4c64d3954ce5ffda6fc457efa28b8d8519

Contents?: true

Size: 534 Bytes

Versions: 19

Compression:

Stored size: 534 Bytes

Contents

var Benchmark   = require('benchmark'),
    suite       = new Benchmark.Suite,
    sprintfjs   = require('../src/sprintf.js'),
    sprintf     = sprintfjs.sprintf

suite
    .add('%8d', function() {
        sprintf('%8d', 12345)
    })
    .add('%08d', function() {
        sprintf('%08d', 12345)
    })
    .add('%2d', function() {
        sprintf('%2d', 12345)
    })
    .add('%8s', function() {
        sprintf('%8s', 'abcde')
    })
    .add('%+010d', function() {
        sprintf('%+010d', 12345)
    })

module.exports = suite

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ela-4.1.6 node_modules/sprintf-js/benchmark/benchmark.js
ela-4.1.5 node_modules/sprintf-js/benchmark/benchmark.js
ela-4.1.4 node_modules/sprintf-js/benchmark/benchmark.js
ela-4.1.3 node_modules/sprintf-js/benchmark/benchmark.js
ela-4.1.2 node_modules/sprintf-js/benchmark/benchmark.js
ela-4.1.1 node_modules/sprintf-js/benchmark/benchmark.js
ela-4.1.0 node_modules/sprintf-js/benchmark/benchmark.js
ela-4.0.0 node_modules/sprintf-js/benchmark/benchmark.js
ela-3.4.3 node_modules/sprintf-js/benchmark/benchmark.js
ela-3.4.2 node_modules/sprintf-js/benchmark/benchmark.js
ela-3.4.0 node_modules/sprintf-js/benchmark/benchmark.js
ela-3.3.1 node_modules/sprintf-js/benchmark/benchmark.js
ela-3.3.0 node_modules/sprintf-js/benchmark/benchmark.js
ela-3.2.0 node_modules/sprintf-js/benchmark/benchmark.js
ela-3.1.1 node_modules/sprintf-js/benchmark/benchmark.js
ela-3.1.0 node_modules/sprintf-js/benchmark/benchmark.js
ela-3.0.0 node_modules/sprintf-js/benchmark/benchmark.js
ela-2.0.0 node_modules/sprintf-js/benchmark/benchmark.js
ela-1.1.0 node_modules/sprintf-js/benchmark/benchmark.js