in reply to Re^2: How can I do a numeric sort on a substring? [Benchmark]
in thread How can I do a numeric sort on a substring?
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:
# Extend @unordered for improved benchmarking push @unordered, map "a-$_", shuffle 0..10000;
"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:
Unordered data (for preamble tests):
— Ken
|
|---|