<!--- Create an array to populate. ---> <cfset arrData = [] /> <!--- Create a struct to populate. ---> <cfset objData = {} /> <!--- Now, populate both using 1-based index. ---> <cfloop index="intIndex" from="1" to="100000" step="1"> <!--- Add to array. ---> <cfset arrData[ intIndex ] = true /> <!--- Add to struct. ---> <cfset objData[ intIndex ] = true /> </cfloop> <!--- Iterate over array. ---> <cftimer type="outline" label="Array Iteration"> <!--- Use index loop. ---> <cfloop index="intIndex" from="1" to="#ArrayLen( arrData )#" step="1"> <!--- Loop up value using Array index. ---> <cfset blnValue = arrData[ intIndex ] /> </cfloop> Done. </cftimer> <!--- Iterate over struct. ---> <cftimer type="outline" label="Struct Iteration"> <!--- Use index loop. ---> <cfloop index="intIndex" from="1" to="#StructCount( objData )#" step="1"> <!--- Loop up value using struct key. ---> <cfset blnValue = objData[ intIndex ] /> </cfloop> Done. </cftimer>