Constant vs Function (v2)

Revision 2 of this benchmark created on


Setup

const VALUE = {
	    calculatedName: { label: 'Nombre', width: 35 },
        email: { label: 'Email', width: 35 },
        idNumber: { label: 'ID Number', width: 20 },
        taxId: { label: 'Tax ID', width: 15 },
        countryName: { label: 'País', width: 20 },
        january: { label: 'Enero', width: 10 },
        february: { label: 'Febrero', width: 10 },
        march: { label: 'Marzo', width: 10 },
        april: { label: 'Abril', width: 10 },
        may: { label: 'Mayo', width: 10 },
        june: { label: 'Junio', width: 10 },
        july: { label: 'Julio', width: 10 },
        august: { label: 'Agosto', width: 10 },
        september: { label: 'Septiembre', width: 10 },
        october: { label: 'Octubre', width: 10 },
        november: { label: 'Noviembre', width: 10 },
        december: { label: 'Diciembre', width: 10 },
        total: { label: 'Total', width: 10 },
};
const getValue = () => VALUE;

Test runner

Ready to run.

Testing in
TestOps/sec
Constant
let val = VALUE;
ready
Function
let val = getValue();
ready

Revisions

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