JS Challenge 2
JavaScript performance comparison
Info
The second code challenge @ DM
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 | |
|---|---|---|
Michael K |
|
pending… |
Max H |
|
pending… |
Spencer W |
|
pending… |
Jenni |
|
pending… |
Frank |
|
pending… |
Kyle |
|
pending… |
Sam P |
|
pending… |
Phil H |
|
pending… |
Scott |
|
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 by Michael
- Revision 2: published
- Revision 3: published by Spencer
- Revision 4: published
- 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
- Revision 14: published
- Revision 15: published
- Revision 16: published
- Revision 17: published
- Revision 18: published
- Revision 19: published
- Revision 20: published and last updated
- Revision 21: published and last updated
- Revision 22: published
- Revision 23: published
- Revision 24: published
- Revision 25: published
- Revision 26: published
- Revision 27: published by Patrick Putnam and last updated
0 comments