Character counting
JavaScript performance comparison
Preparation code
<script>
Benchmark.prototype.setup = function() {
var s = "http://msujaws.wordpress.com/2012/09/18/unnecessary-regular-expressions/#comments";
};
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
Regex character counting |
|
pending… |
Iterative character counting |
|
pending… |
Iterative character counting (no coercion) |
|
pending… |
Iterative character counting (prefix increment) |
|
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 Jared Wein
- Revision 2: published by Christian Sonne
- Revision 3: published
- Revision 4: published by Erik Corry
- Revision 5: published by Christian Sonne
- Revision 8: published by Christian Sonne
- Revision 9: published by Jared Wein
- Revision 10: published by Christian Sonne
- Revision 11: published by Ted Ying
0 comments