testing replace

JavaScript performance comparison

Test case created

Preparation code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<style type="text/css">
.rollover a { display:block; height:28px;width:140px; background: url('/media/shared/general/_fd/cplogin.gif') no-repeat 0 0;}
.rollover a:hover { background: url('/media/shared/general/_fd/cplogin_down.gif') no-repeat 0 0; }
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>FastDomain - Domain Hosting</title>
<link rel="shortcut icon" href="/favicon.ico" />
<link id="page_favicon" href="/favicon.ico" rel="icon" type="image/x-icon" />
<link rel="canonical" href="http://www.ljepson.alpha.fastdomain.com/hosting" />
<meta name="keywords" content="domain registration domains hosting renewal domain transfer">
<meta name="description" content="Domain registration, domain hosting, domain renewals, domain transfers and much more - FASTDOMAIN">
<link href="/media/shared/general/homelayout.css" rel="stylesheet" type="text/css">
<link href="/media/shared/general/_fd/homestyle.css" rel="stylesheet" type="text/css">
</head>
<body>
<script type="text/javascript"> if (window.top !== window.self) {document.write = "";window.top.location = window.self.location; setTimeout(function(){document.body.innerHTML='';},1);window.self.onload=function(evt){document.body.innerHTML='';};} </script>
<table width="800" border="0" cellspacing="0" cellpadding="0" align="center" class="tableborder">
  <tr>
    <td>

      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td valign="top" style="width: 231px; height: 73px;"><a href="/"><img src="/media/shared/general/_fd/domain-hosting.png" width="231" style="height: 73px;" border="0"></a></td>

          <td style="height:73px;background-image:url(/media/shared/general/_fd/header_bg.png); position: relative;" align="right" valign="top">
              <div style="padding-top: 10px; padding-right: 10px;">
          <div style="float: right;" class="nav"><div class="rollover"><a onclick="try {pageTracker._trackEvent('click-login', 'https://www.ljepson.alpha.fastdomain.com/cgi-bin/cplogin', document.URL);} catch(e){};" href="https://www.ljepson.alpha.fastdomain.com/cgi-bin/cplogin" class="smalllink"></a></div>
          </div> </td>
              </div>
            </form>
          </td>
        </tr>
      </table>

      <table width="100%"  border="0" cellspacing="0" cellpadding="0" class="navcolor">
        <tr><td colspan="15" class="navline"><img src="/media/shared/general/spacer.gif" width="1" height="1"></td></tr>
        <tr>
          <td><img src="/media/shared/general/spacer.gif" width="18" height="1"></td>
          <td><a href="/hosting.html"><div class="nav" onMouseOver="this.className='nav_on'" onMouseOut="this.className='nav'">
            <img src="/media/shared/general/spacer.gif">HOSTING HOME<img src="/media/shared/general/spacer.gif"></div></a></td>
          <td><img src="/media/shared/general/_fd/domain-nav-divider.gif" width="1" height="23"></td>
          <td><a href="/hosting_features.html"><div class="nav" onMouseOver="this.className='nav_on'" onMouseOut="this.className='nav'">
            <img src="/media/shared/general/spacer.gif">HOSTING FEATURES<img src="/media/shared/general/spacer.gif"></div></a></td>
          <td><img src="/media/shared/general/_fd/domain-nav-divider.gif" width="1" height="23"></td>
          <td><a href="/cgi/help"><div class="nav" onMouseOver="this.className='nav_on'" onMouseOut="this.className='nav'">
            <img src="/media/shared/general/spacer.gif">HELP CENTER<img src="/media/shared/general/spacer.gif"></div></a></td>
          <td><img src="/media/shared/general/_fd/domain-nav-divider.gif" width="1" height="23"></td>
          <td><a href="/about_us.html"><div class="nav" onMouseOver="this.className='nav_on'" onMouseOut="this.className='nav'">
            <img src="/media/shared/general/spacer.gif">ABOUT US<img src="/media/shared/general/spacer.gif"></div></a></td>
          <td><img src="/media/shared/general/_fd/domain-nav-divider.gif" width="1" height="23"></td>
          <td><a href="/contact_us.html"><div class="nav" onMouseOver="this.className='nav_on'" onMouseOut="this.className='nav'">
            <img src="/media/shared/general/spacer.gif">CONTACT US<img src="/media/shared/general/spacer.gif"></div></a></td>
          <td><img src="/media/shared/general/_fd/domain-nav-divider.gif" width="1" height="23"></td>
          <td><a href="/cgi-bin/signup"><div class="nav" onMouseOver="this.className='nav_on'" onMouseOut="this.className='nav'">
            <img src="/media/shared/general/spacer.gif">DOMAIN CHECK<img src="/media/shared/general/spacer.gif"></div></a></td>
          <td><img src="/media/shared/general/_fd/domain-nav-divider.gif" width="1" height="23"></td>
          <td><a href="/cgi-bin/partner"><div class="nav" onMouseOver="this.className='nav_on'" onMouseOut="this.className='nav'">
            <img src="/media/shared/general/spacer.gif">AFFILIATES<img src="/media/shared/general/spacer.gif"></div></a></td>
          <td width="100%">&nbsp;</td>
        </tr>
      </table>

      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <!-- end sidebar -->


          <td width="100%" valign="top" bgcolor="#FFFFFF">
            <!-- body area -->


<script src="/media/shared/general/cookies.js" type="text/javascript"></script>
<link rel="stylesheet" href="/media/shared/info/index/_fd/home.css" type="text/css">
<style>
#price_container {
left:275px;
position:absolute;
top:20px;
}
#ps {
display:none;
}
</style>


<br />
<div class="hp_header">
   <img src="/media/shared/general/_fd/livedemobox.gif" border="0" alt="View our demo site, try out our tools, and see what FastDomain can do for you.">
  <a target="_blank" onclick="try {pageTracker._trackEvent('click-demo', '/cgi/demo', document.URL);} catch(e){};" href="/cgi/demo"><img src="/media/shared/general/_fd/btn_demologin.gif" border="0" alt="Live Demo Login" style="position: absolute; left: 50px; top: 190px;"></a>
    <div id="price_container" class="hosting_price">
        <div class="p_block" id="ps"><div class="p_block"><span id="p_tagline">Special Introductory Offer</span>
    <span class="numbers">
        <del id="p_del">
            <span id="p_currency_subtype"></span><span id="p_strike_currency">$</span><span id="p_strike_price"></span><div class="diag_strike"></div>
        </del>

        <ins id="p_ins">
            <span id="p_currency_subtype"></span><span id="p_currency">$</span><span id="p_whole"></span><span id="p_separator">.</span><span id="p_decimal"></span><span id="p_term">/month</span>
        </ins>
    </span>
    <div class="p_renewal_term">
<span>Initial Term: 36, 48 months</span>
    </div>  
    <div class="p_renewal_rate">
<span>Renewal Rates from <span id="p_strike_currency">$</span><span id="p_strike_price"></span>/mo</span>
    </div>
</div>
</div>
        <noscript><iframe src="/cgi/price" frameborder="0" scrolling="no" allowtransparency="true" style="border: none; overflow: hidden;"></iframe></noscript>
    </div>
    <div style="position: absolute; left: 275px; top: 85px;">
  <ul class="bulletlist">
    <li>Free Set-up</li>
    <li>No Hidden Fees</li>
    <li>Domain Included!</li>
  </ul>
    </div>
  <a onclick="try {pageTracker._trackEvent('click-signup', '/cgi-bin/signup', document.URL);} catch(e){};" href="/cgi-bin/signup"><img src="/media/shared/general/_fd/btn_hp_signup-normal.gif" id="sti" width="274" height="59" border="0" style=" position:absolute; left: 270px; bottom: 49px;" alt="Sign Up Now!" /></a>
</div>
<div id="adisc" class="adisc"></div>
<div style="text-align:center; padding-left: 3px; padding-top: 3px; padding-bottom: 3px;">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="226">
        <img src="/media/shared/general/_fd/column1_header.gif" /></td>
    <td width="267">
        <img src="/media/shared/general/_fd/column2_header.gif" /></td>
    <td width="301">
        <img src="/media/shared/general/_fd/column3_header.gif" /></td>
  </tr>
  <tr>
    <td width="226" style="background:url(/media/shared/general/_fd/column1_span.gif) repeat-y;" rowspan="2">
    <div style="width: 100%; height: 208px; position: relative;">
                <div style="color: rgb(75, 75, 75); position: absolute; left: 20px; top: 10px; width: 170px;">We specialize in customer satisfaction. Call us with your questions <span style="font-weight: bold;">Toll Free 24/7!</span></div>
                <div style="position: absolute; left: 75px; top: 70px;">
                <span style="font-size: 14px; font-weight: bold; color: rgb(103, 171, 36); width: 140px;">
                (888) 210-FAST<br>(888) 210-3278
                </span>
                </div>
<!-- Live CHAT Link -->
<div style="position: absolute; left: 75px; top: 125px;">Prefer to talk online?<br />Start a Live Chat.</div>
<form action="/cgi/chat" method="get" target="_blank">
  <input type="image" src="/media/shared/general/_fd/btn_livechat.gif" border="0" style="position: absolute; left: 75px; top: 170px;">
</form>
<!-- Holiday CHAT link-->
<!--        <div style="position: absolute; left: 75px; top: 125px;"></div><img src="/media/shared/general/_fd/btn_livechat_holiday.gif" border="0" style="position: absolute; left: 75px; top: 170px;">-->
<!-- Unavailable CHAT link-->
<!--        <div style="position: absolute; left: 75px; top: 125px;"></div><img src="/media/shared/general/_fd/btn_livechat_unavailable.gif" border="0" style="position: absolute; left: 75px; top: 170px;">-->
    <img src="/media/shared/general/_fd/cs_photo.gif" border="0" style="position: absolute; left: 4px; bottom: 0px;">
    </div>
    </td>
    <td width="267" style="background:url(/media/shared/general/_fd/column2_span.gif) repeat-y; text-align: center; position: relative;">
    <div style="margin-left: 15px; margin-right: 15px;">
    <ul class="ul1">
        <li><span class="boldspan">UNLIMITED</span> Hosting Space</li>
        <li><span class="boldspan">UNLIMITED</span> File Transfer</li>
        <li><span class="boldspan">UNLIMITED</span> Domain Hosting</li>
        <li>2,500 POP/Imap Email Accounts</li>
        <li>SSH Access (Secure Shell)</li>
        <li>SSL, FTP, Stats</li>
        <li>CGI, Ruby (RoR), Perl, PHP, MYSQL</li>
        <li>FrontPage Extensions</li>
        <li>Free Domain</li>
        <li>Free Site Builder</li>
    </ul>
    </div>
    </td>
    <td width="301" style="background:url(/media/shared/general/_fd/column3_span.gif) repeat-y; padding:0px 3px;" valign="top">
    <div style="margin: 10px; margin-right: 15px; margin-bottom: 0px;">
        <ul class="ul1" style="margin-top: 8px;">
            <li>24/7 Toll-Free Phone Support </li>
            <li>Average Hold Time &lt;2 minutes</li>
            <li>30 Day Money Back Guarantee</li>
            <li>Instant Setup - Use Your Site Now!</li>
            <li>Free 1 Click Installer for Over 50 Scripts</li>
            <li>Free Blogs, Shopping Cart, Forums, CMS, Photo Galleries, and more!</li>
            <li>Free Domain Name or Domain Transfer</li>
            <li>Free Site Promotion</li>
        </ul>
    </div>
    <div id="trackr"></div>
    </td>
  </tr>
  <tr>
    <td style="background:url(/media/shared/general/_fd/column2_span.gif) repeat-y;" align="center"><a onclick="try {pageTracker._trackEvent('click-tell_me_more', '/cgi/info/hosting_features.html', document.URL);} catch(e){};" href="/cgi/info/hosting_features.html"><img src="/media/shared/general/_fd/btn_tell.gif" border="0"></a></td>
    <td style="background:url(/media/shared/general/_fd/column3_span.gif) repeat-y;" align="center"><a onclick="try {pageTracker._trackEvent('click-why_we_are_better', '/cgi/info/hosting_features.html', document.URL);} catch(e){};" href="/cgi/info/hosting_features.html"><img src="/media/shared/general/_fd/btn_why-better.gif" alt="Why We're Better" width="133" height="26" border="0" id="wwbi" /></a></td>
  </tr>
  <tr>
    <td><img src="/media/shared/general/_fd/column1_footer.gif" /></td>
    <td><img src="/media/shared/general/_fd/column2_footer.gif" /></td>
    <td><img src="/media/shared/general/_fd/column3_footer.gif" /></td>
  </tr>
</table>
<div id="sale_terms"></div>
</div>
<script src="/cgi/price/script"></script>
<script src="/media/shared/general/swfobject.js"></script>
<script src="/cgi/flash/J/"></script>
<script>
    function showpricing (c) {
        var pscript = document.createElement('script');
        pscript.src = "/cgi/price/flash?r="+escape(document.referrer)+'&c='+c;
        pscript.id = 'pscript';
        document.head.appendChild(pscript);
    }
  swfobject.embedSWF("/media/shared/general/trackr.swf", "trackr", "1", "1", "4.0.0", false, { post_js: "showpricing" });
</script>
<script>
var sti = document.getElementById('sti');
if (sti) {
  sti.onmouseout  = function (e) { sti.src = "/media/shared/general/_fd/btn_hp_signup-normal.gif" };
  sti.onmouseover = function (e) { sti.src = "/media/shared/general/_fd/btn_hp_signup-over.gif" };
}

var wwbi = document.getElementById('wwbi');
if (wwbi) {
        wwbi.onmouseout  = function (e) { wwbi.src = "/media/shared/general/_fd/btn_why-better.gif" };
        wwbi.onmouseover = function (e) { wwbi.src = "/media/shared/general/_fd/btn_why-better-over.gif" };
}

var demoi = document.getElementById('demoi');
if (demoi) {
        demoi.onmouseout  = function (e) { demoi.src = "/media/shared/general/_fd/btn_demo-login-normal.gif" };
        demoi.onmouseover = function (e) { demoi.src = "/media/shared/general/_fd/btn_demo-login-over.gif" };
}

// log referrer to server for cached hits
var ref = document.referrer;
// clear all logins on a logout
if ((location.search && location.search == '?lo=1')
    || (ref && ref.match(/(frontend|logout)/))) {
  var el1 = document.createElement('img'); el1.src = '/cgi/account?logout=1';
  var el2 = document.createElement('img'); el2.src = 'https://my.ljepson.alpha.fastdomain.com/cgi/account?logout=1';
}




var t = new Date();
t = t.getTime();
var url = (document.location.protocol || "http:")+"//www.fastdomain.com/cgi/aff_land?referrer="+document.referrer+"&rand=" +encodeURI(t);
document.write('<scrip'+'t src="'+url+'"></scrip'+'t>');
</script>
<script>window.jQuery || document.write('<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js">\x3C/script>')</script>
<script>window.jQuery || document.write('<script src="/media/shared/general/jquery/jquery-1.8.1.min.js">\x3C/script>')</script>
<script>
$(function() {
    $('.unl').css('text-decoration','underline').click(function (e) {
        e.preventDefault();
        show_lbox();
        $(document).mouseup(function (e) {
            if ($('#lb .contain').has(e.target).length === 0) $('#lb').hide();
        });
    });
});
function show_lbox() {
    $('body').append('<div id="lb"></div>');
    $('#lb').css('display','table');
    $.ajax({ url: '/cgi/info/unlimited.html', cache: false, success: function(d) {
        $('#lb').html(d);    
        $('.close_overlay').click(function() { $('#lb').hide(); });
    }});
}
</script>

            <!-- body area end -->
          </td>
        </tr>
      </table>

      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr><td colspan="4"><img src="/media/shared/general/spacer.gif" width="1" height="1"></td></tr>
        <tr>
          <td class="navcolor" nowrap><img src="/media/shared/general/spacer.gif" width="10" height="20" align="absmiddle"><span class="footertext">&copy; 2006-2012 FastDomain.com. All rights reserved.</span></td>
          <td class="navcolor" width="100%">&nbsp;</td>
          <td class="navcolor" nowrap>
            <a href="/cgi/help" class="footer">Help Center</a>
            <img src="/media/shared/general/_fd/domain-nav-divider.gif" width="1" height="23" align="absmiddle" >
            <a href="/contact_us.html" class="footer">Contact Us</a>
            <img src="/media/shared/general/_fd/domain-nav-divider.gif" width="1" height="23" align="absmiddle" >
            <a href="/about_us.html" class="footer">About Us</a>
            <img src="/media/shared/general/_fd/domain-nav-divider.gif" width="1" height="23" align="absmiddle" >
            <a href="http://partner.fastdomain.com/" class="footer">Affiliates</a>
            <img src="/media/shared/general/_fd/domain-nav-divider.gif" width="1" height="23" align="absmiddle" >
            <a href="/cgi/whois" class="footer">Whois</a>
            <img src="/media/shared/general/_fd/domain-nav-divider.gif" width="1" height="23" align="absmiddle" >
            <a href="/cgi/terms" class="footer">Terms</a>
           </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

<script>
var gaJsHost = ("https:" == document.location.protocol) ? "https://ssl." : "http://www.";
document.write("<scr"+"ipt src='" +gaJsHost+ "google-analytics.com/ga.js'></scr"+"ipt>");
</script>
<script>
var pageTracker = _gat._getTracker("UA-9156498-3");
pageTracker._initData();
pageTracker._setDomainName("fastdomain.com");
pageTracker._trackPageview("/hosting.html");

</script>

</body>
</html>

Preparation code output

FastDomain - Domain Hosting

View our demo site, try out our tools, and see what FastDomain can do for you. Live Demo Login
Special Introductory Offer $
$./month
Initial Term: 36, 48 months
Renewal Rates from $/mo
  • Free Set-up
  • No Hidden Fees
  • Domain Included!
Sign Up Now!
We specialize in customer satisfaction. Call us with your questions Toll Free 24/7!
(888) 210-FAST
(888) 210-3278
Prefer to talk online?
Start a Live Chat.
  • UNLIMITED Hosting Space
  • UNLIMITED File Transfer
  • UNLIMITED Domain Hosting
  • 2,500 POP/Imap Email Accounts
  • SSH Access (Secure Shell)
  • SSL, FTP, Stats
  • CGI, Ruby (RoR), Perl, PHP, MYSQL
  • FrontPage Extensions
  • Free Domain
  • Free Site Builder
  • 24/7 Toll-Free Phone Support
  • Average Hold Time <2 minutes
  • 30 Day Money Back Guarantee
  • Instant Setup - Use Your Site Now!
  • Free 1 Click Installer for Over 50 Scripts
  • Free Blogs, Shopping Cart, Forums, CMS, Photo Galleries, and more!
  • Free Domain Name or Domain Transfer
  • Free Site Promotion
Why We're Better

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
test1
$('body').find(':not(iframe)')
        .andSelf()
        .contents()
        .filter(function(){
            return this.nodeType === 3 && !this.parentNode.nodeName.match(/script/i) && this.nodeValue.match(/Unlimited/i);
        })
        .each(function(){
            this.parentNode.innerHTML = this.nodeValue.replace(/(Unlimited)/gi,'<a href="www.google.com" class="unl">$1<\/a>');
        });
pending…
test2
var = test;
pending…

You can edit these tests or add even more tests to this page by appending /edit to the URL.

Compare results of other browsers

1 comment

Nashht commented :

Компания ЮсА предоставляет услуги доставки груза,вывоза стоительного мусора,перевозки мебели,квартирного переезда по Харькову, Харьковской области,Европе автомобилями: ГАЗель,ГАЗель-пирамида,ГАЗель-дуэт,ГАЗель-самосвал,КАМАЗ,ЗИЛ,МАЗ-зубрёнок по выгодным тарифам.Так же предлагаем услуги грузчиков,сборка,разборка и упаковка.

Add a comment