arrayFind performance

Maybe you are interested in a simple performance comparison for listFind() and arrayFind (inspired by this article: http://www.aliaspooryorik.com/blog/index.cfm/e/posts.details/post/listfind-alternatives-404 )
I always thought that arrayFind should be faster, but this proved to be wrong – listFind is approx. 3x faster in this test?
(running on http://www.trycf.com/ )

<cfset listFind(test, i)>

#getTickcount() - start#

Lucee 4.5 ~ 2 sec (Railo also ~ 2 sec, ACF 10 still running … )====================================

<cfset arrayFind(test, i)>

#getTickcount() - start#

Lucee 4.5 ~ 6 sec (Railo ~ 7 sec, ACF 10 ~ 12 sec)

-Harry

Interesting…

Must have something to do with object comparisons. ArrayFindNoCase is
faster than ArrayFind, probably since it only expects simple values. It is
still a fraction slower (around 2%) than listFind though. Don’t know it
that’s significant, although repeated runs keep reproducing this small
difference.