Sha256: 9b83b68a03c0aa4ee0b1e011a01d647d709abdf6b923d96bfb2a36b45637ecfb

Contents?: true

Size: 495 Bytes

Versions: 19

Compression:

Stored size: 495 Bytes

Contents

var moment = require('./../moment.js')

var base = moment('2013-05-25');
var value = 2;

function createTest(unit) {
    return {
        fn: function () { base.set(unit, value); },
        async: false
    };
}

var units = ['second', 'minute', 'hour', 'date', 'day', 'isoWeek', 'week', 'month', 'quarter', 'year'];
var tests = units.reduce(function (tests, unit) {
    tests['set ' + unit] = createTest(unit);
    return tests;
}, {});

module.exports = {
    name: 'set',
    tests: tests
};

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
card-mod-date-0.15.6 vendor/moment/benchmarks/set.js
card-mod-date-0.15.0 vendor/moment/benchmarks/set.js
card-mod-date-0.14.2 vendor/moment/benchmarks/set.js
card-mod-date-0.14.1 vendor/moment/benchmarks/set.js
card-mod-date-0.14.0 vendor/moment/benchmarks/set.js
card-mod-date-0.13.4 vendor/moment/benchmarks/set.js
card-mod-date-0.13.3 vendor/moment/benchmarks/set.js
card-mod-date-0.13.2 vendor/moment/benchmarks/set.js
card-mod-date-0.13.1 vendor/moment/benchmarks/set.js
card-mod-date-0.13.0 vendor/moment/benchmarks/set.js
card-mod-date-0.11.7 vendor/moment/benchmarks/set.js
card-mod-date-0.12.0 vendor/moment/benchmarks/set.js
card-mod-date-0.11.6 vendor/moment/benchmarks/set.js
card-mod-date-0.11.5 vendor/moment/benchmarks/set.js
card-mod-date-0.11.4 vendor/moment/benchmarks/set.js
card-mod-date-0.11.3 vendor/moment/benchmarks/set.js
card-mod-date-0.11.2 vendor/moment/benchmarks/set.js
card-mod-date-0.11.1 vendor/moment/benchmarks/set.js
card-mod-date-0.11.0 vendor/moment/benchmarks/set.js