ObjectMap vs. PersistentArrayMap

JavaScript performance comparison

Revision 4 of this test case created

Preparation code

<script src="http://raw.github.com/swannodette/cljs-perf/master/om_vs_pam.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
OM assoc empty rev 4
cljs_perf.om_vs_pam.core.om_assoc()
pending…
PM assoc empty
cljs_perf.om_vs_pam.core.pam_assoc()
pending…
OM with 1 kv, assoc
cljs_perf.om_vs_pam.core.om_assoc_1()
pending…
PAM with 1 kv, assoc
cljs_perf.om_vs_pam.core.pam_assoc_1()
pending…
OM with 2 kv, assoc
cljs_perf.om_vs_pam.core.om_assoc_2()
pending…
PAM with 2 kv, assoc
cljs_perf.om_vs_pam.core.pam_assoc_2()
pending…
OM 1 kv, lookup
cljs_perf.om_vs_pam.core.om_lookup_1()
pending…
PAM 1 kv, lookup
cljs_perf.om_vs_pam.core.pam_lookup_1()
pending…
OM 2 kv, lookup
cljs_perf.om_vs_pam.core.om_lookup_2()
pending…
PAM 2 kv, lookup
cljs_perf.om_vs_pam.core.pam_lookup_2()
pending…
OM 3 kv, lookup
cljs_perf.om_vs_pam.core.om_lookup_3()
pending…
PAM 3 kv, lookup
cljs_perf.om_vs_pam.core.pam_lookup_3()
pending…
OM 3 kv, assoc
cljs_perf.om_vs_pam.core.om_assoc_3()
pending…
PAM 3 kv, assoc
cljs_perf.om_vs_pam.core.pam_assoc_3()
pending…
OM 3 kv, assoc exist
cljs_perf.om_vs_pam.core.om_assoc_3_exist()
pending…
PAM 3 kv, assoc exist
cljs_perf.om_vs_pam.core.pam_assoc_3_exist()
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:

0 comments

Add a comment