match vs indexOf
JavaScript performance comparison
Preparation code
<script>
var str = "hello world!";
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
match |
|
pending… |
indexOf |
|
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 3: published by Dave Tonge
- Revision 4: published by Rafael
- Revision 7: published
- Revision 8: published by Paul Grenier
- Revision 9: published by HA
- Revision 10: published by HA
- Revision 11: published
- Revision 12: published by GlitchMr
- Revision 13: published by Michael Bester
- Revision 14: published by @tjmehta
- Revision 15: published by Seamus and last updated
- Revision 17: published
- Revision 18: published
- Revision 19: published
- Revision 20: published
- Revision 21: published
- Revision 22: published
- Revision 23: published
- Revision 24: published
- Revision 25: published
- Revision 26: published
- Revision 27: published
- Revision 39: published
- Revision 40: published
- Revision 41: published by ariel
- Revision 43: published
- Revision 44: published
- Revision 46: published
- Revision 47: published
- Revision 49: published
- Revision 52: published
- Revision 55: published
- Revision 56: published
- Revision 57: published
- Revision 58: published
- Revision 59: published
- Revision 60: published
- Revision 61: published by fgsfds
- Revision 64: published by fgsfds
- Revision 65: published by fgsfds
- Revision 68: published by benny
- Revision 70: published
- Revision 71: published by JoePeck
- Revision 73: published by Jarrod
- Revision 74: published
- Revision 76: published
0 comments