testing array spread

Benchmark created on


Description

comparing array spread to to other ways

Setup

const dict={};
[..."abcdefghijklmnopqrstuvwxyz"].slice(0,20).forEach((c,i) => {dict[c] = c.repeat(1)});

Test runner

Ready to run.

Testing in
TestOps/sec
with spread
b = {...dict, d:4}
ready
direct assigment
dict['d'] = 4
ready

Revisions

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