cljs-persistent-hash-map-transient-support

JavaScript performance comparison

Test case created by Michał Marczyk

Preparation code

 
<script>
Benchmark.prototype.setup = function() {
    m = null;
};
</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
build large map with assoc
m = phm.empty_persistent_hash_map();
for (var i = 0; i < 10000; i++) {
  m = phm.assocwrapper(m, i, i);
}
pending…
build large map with transient, assoc!, persistent!
m = phm.transientwrapper(phm.empty_persistent_hash_map());
for (var i = 0; i < 10000; i++) {
  m = phm.assocbangwrapper(m, i, i);
}
m = phm.persistentwrapper(m);
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