diff options
| author | James Smith <baggy@baggy.me.uk> | 2021-07-27 07:25:09 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-27 07:25:09 +0100 |
| commit | fbf0ef4e1d193d3a2e371cf259eefd8793c57ede (patch) | |
| tree | 2ffd91c249b43f6c97b8208b88c7850b4956ebaf | |
| parent | 77314f65a59cf5bbc286fb0e3a0b13f46d852f6e (diff) | |
| download | perlweeklychallenge-club-fbf0ef4e1d193d3a2e371cf259eefd8793c57ede.tar.gz perlweeklychallenge-club-fbf0ef4e1d193d3a2e371cf259eefd8793c57ede.tar.bz2 perlweeklychallenge-club-fbf0ef4e1d193d3a2e371cf259eefd8793c57ede.zip | |
Update README.md
| -rw-r--r-- | challenge-123/james-smith/README.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/challenge-123/james-smith/README.md b/challenge-123/james-smith/README.md index 85b1e201e4..e796fa9e04 100644 --- a/challenge-123/james-smith/README.md +++ b/challenge-123/james-smith/README.md @@ -84,9 +84,10 @@ sub nth_ugly_opt { Below is the performance of the methods. Note these were tested without using `state` variables, as the caching nature of state variables prevents benchmarking (values are obtained directly from the cache) - although if you were using this in a -real world situation that would be an advantage! +real world situation that would be an advantage! Scanning where `n` is greater than 500 takes too long to get accurate +benchmarks. -| n | Ugly(n) | scan /s | simple /s | opt /s | opt vs sim % | sim vs scn % | opt vs scn % | +| n | Ugly_n | scan /s | simple /s | opt /s | opt vs sim % | sim vs scn % | opt vs scn % | | -----: | -------------------------: | --------: | ------------: | ------------: | -----------: | -----------: | -----------: | | 1 | 1 | *938,492* | **3,005,191** | 1,799,451 | -40 | 220 | 92 | | 2 | 2 | *536,552* | 816,345 | **1,089,848** | 34 | 52 | 103 | |
