string regex testing
JavaScript performance comparison
Preparation code
<a href="http://fiddle.jshell.net"></a>
<a href="http://foo.net"></a>
<a href="/foodnet"></a>
<b><span></span></b><div><div></div><div>
<a href="http://jshell.net"></a>
<area>
<map href="http://google.com" />
</area>
<a href="http://www.jshell.net"></a>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
Preparation code output
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
test |
|
pending… |
match |
|
pending… |
search |
|
pending… |
exec |
|
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 by yc
- Revision 2: published
0 comments