Underscore Test Suite

Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)

Tests completed in 17 milliseconds.
10 tests of 10 passed, 0 failed.

  1. Objects: isEmpty (0, 10, 10)Rerun
    1. [1] is not empty
    2. [] is empty
    3. {one : 1} is not empty
    4. {} is empty
    5. objects with prototype properties are empty
    6. null is empty
    7. undefined is empty
    8. the empty string is empty
    9. but other strings are not
    10. deleting all the keys from an object empties it

Underscore Speed Suite

A representative sample of the functions are benchmarked here, to provide a sense of how fast they might run in different browsers. Each iteration runs on an array of 1000 elements.

For example, the 'intersection' test measures the number of times you can find the intersection of two thousand-element arrays in one second.




Normalize results
unknown platform
TestOps/sec
_.each() ready
_(list).each() ready
jQuery.each() ready
_.map() ready
jQuery.map() ready
_.pluck() ready
_.uniq() ready
_.uniq() (sorted) ready
_.sortBy() ready
_.isEqual() ready
_.keys() ready
_.values() ready
_.intersection() ready
_.range() ready
_.flatten() ready
Powered by JSLitmus