in reply to Re: Benchmarking "Are all these characters in this sentence?"
in thread Benchmarking "Are all these characters in this sentence?"
I added that test case, as well as a
to test for those pesky perl falsehood values.[ "0", "0", 1],
buk and buk2 both pass this new test and fail yours. (Edit: Corrected, thanks ysth)
Adding length makes buk2 correct, and doesn't penalize the speed much:
buk2_len 4610/s 4007% buk2 4791/s 4168%
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Benchmarking "Are all these characters in this sentence?" (Faster still?)
by BrowserUk (Patriarch) on Sep 01, 2008 at 11:43 UTC | |
by RMGir (Prior) on Sep 01, 2008 at 11:57 UTC | |
|
Re^3: Benchmarking "Are all these characters in this sentence?"
by ysth (Canon) on Sep 01, 2008 at 16:49 UTC | |
by RMGir (Prior) on Sep 01, 2008 at 17:14 UTC | |
by BrowserUk (Patriarch) on Sep 01, 2008 at 18:24 UTC | |
by RMGir (Prior) on Sep 01, 2008 at 18:35 UTC | |
by BrowserUk (Patriarch) on Sep 01, 2008 at 19:20 UTC | |
|