Searching in javascript/benchmark