Naive date string component checking

Benchmark created by Korey Hinton on


Test runner

Ready to run.

Testing in
TestOps/sec
Split
"12/12/1212".split("/").length === 3
ready
Regex match
("12/12/1212".match(/\//g) || []).length === 2;
ready

Revisions

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

  • Revision 1: published by Korey Hinton on