zepto vs belt
JavaScript performance comparison
Preparation code
<script src="//sjhcockrell.s3.amazonaws.com/downloads/belt.min.js"></script>
<script src="//zeptojs.com/zepto.min.js"></script>
<script>
Benchmark.prototype.setup = function() {
var a = [],
i = -1,
o = {};
while (++i < 10000) {
a[i] = i;
o[i] = i;
}
function manipulate(value, key, obj) {
return value * 11;
}
};
</script>
Preparation code output
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
Belt.forEach |
|
pending… |
Zepto.forEach |
|
pending… |
You can edit these tests or add even more tests to this page by appending /edit to the URL.
0 comments