Array.fill vs Array.push vs String.repeat vs Array.set| Test case name | Result |
|---|---|
| Array.fill | |
| Array.push | |
| String.repeat | |
| Array.set |
| Test name | Executions per second |
|---|---|
| ✓ String.repeat | 3,522,932 Ops/sec |
| Array.fill | 80 Ops/sec |
| Array.push | 28 Ops/sec |
| Array.set | 5 Ops/sec |