splitvslimitedsplit

Benchmark created by Jacob Friesen on


Setup

const line = '1,2,3,4,5,6,7';

Test runner

Ready to run.

Testing in
TestOps/sec
no limit
line.split(',').slice(0, 3);
ready
limit
line.split(',', 3)
ready

Revisions

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

  • Revision 1: published by Jacob Friesen on