typescript-es5-vs-es2022-nullish-coalescing

Benchmark created on


Setup

const d3 = {
    id: '4b1733e7-c8e0-4fdd-a7f1-13d3ab725c92',
    updated_at: '2020-07-15T10:24:42.364000000Z',
    job_id: '4b1733e7-c8e0-4fdd-a7f1-13d3ab725c92',
    description: 'Job from our export',
    created_at: '2020-07-15T10:24:40.975000000Z',
    status: 'finished',
};

Test runner

Ready to run.

Testing in
TestOps/sec
es5
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var _d3 = __assign({}, d3);
ready
es2022
const _d3 = { ...d3 };
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.