P is for Practical | |
PerlMonks |
Re^3: How can I do a numeric sort on a substring? [Benchmark]by kcott (Archbishop) |
on Jun 27, 2021 at 02:41 UTC ( [id://11134361]=note: print w/replies, xml ) | Need Help?? |
G'day Rolf, "you are only testing with 10 elements in your @unordered array." The code only contains one comment which I added for the express purpose of heading off such feedback:
"use at least n >> 1000 elements for a real benchmark" Indeed. I used 10,011 elements "for improved benchmarking". The preamble tests were to check that all subroutines returned identical results. Each of the preamble tests were only run once and did not involve any benchmarking; they were intended as a sanity check (processing stopped here if --dry_run was used). The data used for this had 10 elements, which I considered sufficient for these tests, and was indicated by:
— Ken
In Section
Seekers of Perl Wisdom
|
|