ObjectMap vs. PersistentArrayMap
JavaScript performance comparison
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.
| Test | Ops/sec | |
|---|---|---|
OM assoc |
|
pending… |
PM assoc |
|
pending… |
OM with 1 kv, assoc |
|
pending… |
PAM with 1 kv, assoc |
|
pending… |
OM with 2 kv, assoc |
|
pending… |
PAM with 2 kv, assoc |
|
pending… |
OM 1 kv, lookup |
|
pending… |
PAM 1 kv, lookup |
|
pending… |
OM 2 kv, lookup |
|
pending… |
PAM 2 kv, lookup |
|
pending… |
OM 3 kv, lookup |
|
pending… |
PAM 3 kv, lookup |
|
pending… |
OM 3 kv, assoc |
|
pending… |
PAM 3 kv, assoc |
|
pending… |
OM 3 kv, assoc exist |
|
pending… |
PAM 3 kv, assoc 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:
- Revision 1: published
- Revision 2: published
- Revision 3: published
- Revision 4: published
0 comments