scramble
JavaScript performance comparison
Preparation code
<script>
Benchmark.prototype.setup = function() {
var arr = [
['lehlowww', 'hello'],
['dlrwxdonexfe', 'oneworld'],
['oenhodwrol', 'oneworld'],
['rkqodlw', 'world'],
['olaelh', 'hello'],
['helio', 'hell'],
['abcewnorde', 'wonder'],
['wioskrngatwo', 'workingtwo'],
['locaacedo', 'locatedhere'],
['edfbenowaginning', 'beginningnow'],
['CAPS TEST', 'caps test'],
['Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et mauris magna, ac dapibus ipsum. Sed viverra feugiat vehicula. Pellentesque vel lacinia ipsum. Vestibulum vel diam vel velit mollis adipiscing. Suspendisse potenti. Duis elementum erat vitae neque blandit porttitor. Pellentesque pellentesque vulputate posuere. Pellentesque eget justo elit. Praesent elementum odio sit amet lectus dignissim tincidunt. In quam massa, varius nec convallis quis, luctus sed erat. Cras ut massa metus. Integer lacinia iaculis pretium.', 'luctus sed erat']
];
var answers = [true, false, true, true, true, false, true, true, false, true, false, true];
};
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
js1 |
|
pending… |
js2 |
|
pending… |
js3 |
|
pending… |
js4 |
|
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 and last updated
- Revision 5: published
- Revision 6: published
- Revision 7: published
- Revision 8: published
- Revision 9: published
- Revision 10: published
- Revision 11: published
- Revision 12: published
- Revision 13: published and last updated
- Revision 14: published
- Revision 15: published
- Revision 16: published
- Revision 17: published and last updated
0 comments