Uniqify

JavaScript performance comparison

Test case created

Preparation code

<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.3/underscore-min.js"></script>

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
uniqify
uniqifyObject: (arr) ->
    uniqued = _.uniq _.map arr, (elem) -> JSON.stringify(elem)


uniqifyObject([1,2,3,4,5,3,4,3,3,4,5,6,3,2,1,3,4,5,6,7,3])
pending…
test2
uniqifyObject: (arr) ->
    uniqued = _.uniq _.map arr, (elem) -> JSON.stringify(elem)


uniqifyObject([1,2,3,4,5,3,4,3,3,4,5,6,3,2,1,3,4,5,6,7,3])
pending…

You can edit these tests or add even more tests to this page by appending /edit to the URL.

Compare results of other browsers

0 comments

Add a comment