|P is for Practical|
Re^5: Undefined vs empty stringby BrowserUk (Pope)
|on Jun 05, 2013 at 11:16 UTC||Need Help??|
Speed very much depends on what is the most likely value to occur in the tests. length for sure is not always faster.
Hm. You seem to be implying that the speed of length varies with the length of the string?
Whilst that would make sense with C; it makes no sense at all with length, which doesn't need to scan the string to find its length.
Which makes me a little suspicious of the benchmark.
Update: Of course; the affect you are seeing it due to stringification of numeric values.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.