150 key generation

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Array.from
  const customFields = [...Array(150).keys()].reduce((acc, i) => {
    const name = `custom${i + 1}`;
    return {
      ...acc,
      [name]: false,
    };
  }, {});

  return customFields;
ready
for loop
  const ret = {};
  for (let i = 1; i <= 150; i++) {
    const key = `custom${i}`;
    ret[key] = false;
  }
  return ret;
ready

Revisions

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