Emptying an array (v7)

Revision 7 of this benchmark created on


Setup

var arr = ['apples', 'pears', 'oranges', 'lemons', 'kiwis', 'bananas', 'strawberries', 'grapefruits', 'pineapples', 'satsumas', 'lychees'];

Test runner

Ready to run.

Testing in
TestOps/sec
.clear
arr.clear();
ready
Creating a new empty array
arr = [];
ready

Revisions

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