jsPerf.app is an online JavaScript performance benchmark test runner & jsperf.com mirror. It is a complete rewrite in homage to the once excellent jsperf.com now with hopefully a more modern & maintainable codebase.
jsperf.com URLs are mirrored at the same path, e.g:
https://jsperf.com/negative-modulo/2
Can be accessed at:
https://jsperf.app/negative-modulo/2
<script src="https://zeptojs.com/zepto.min.js">
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<div id="mw-page-base" class="noprint">
</div>
<div id="mw-head-base" class="noprint">
</div>
<!-- content -->
<div id="content" class="mw-body">
<a id="top"></a>
<div id="mw-js-message" style="display:none;">
</div>
<!-- sitenotice -->
<div id="siteNotice">
<!-- centralNotice loads here -->
</div>
<!-- /sitenotice -->
<!-- firstHeading -->
<h1 id="firstHeading" class="firstHeading">
<span dir="auto">
FD
</span>
</h1>
<!-- /firstHeading -->
<!-- bodyContent -->
<div id="bodyContent">
<!-- tagline -->
<div id="siteSub">
From Wikipedia, the free encyclopedia
</div>
<!-- /tagline -->
<!-- subtitle -->
<div id="contentSub">
</div>
<!-- /subtitle -->
<!-- jumpto -->
<div id="jump-to-nav" class="mw-jump">
Jump to:
<a href="#mw-head">navigation</a>
,
<a href="#p-search">search</a>
</div>
<!-- /jumpto -->
<!-- bodycontent -->
<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr">
<table class="metadata mbox-small plainlinks" style="border:1px solid #aaa; background-color:#f9f9f9;">
<tr>
<td class="mbox-image">
<img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/f/f8/Wiktionary-logo-en.svg/37px-Wiktionary-logo-en.svg.png"
width="37" height="40" />
</td>
<td class="mbox-text" style="">
Look up
<i>
<b>
<a class="external text" href="//en.wiktionary.org/wiki/Special:Search/fd">fd</a>
</b>
</i>
in Wiktionary, the free dictionary.
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" style="clear: right; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: none; width: auto;">
<tr>
<td>
<table id="toc" class="toc">
<tr>
<td>
<div id="toctitle">
<h2>
Contents
</h2>
</div>
<ul>
<li class="toclevel-1 tocsection-1">
<a href="#Transportation"><span class="tocnumber">1</span> <span class="toctext">Transportation</span></a>
</li>
<li class="toclevel-1 tocsection-2">
<a href="#Medical"><span class="tocnumber">2</span> <span class="toctext">Medical</span></a>
</li>
<li class="toclevel-1 tocsection-3">
<a href="#Science_.26_Technology"><span class="tocnumber">3</span> <span class="toctext">Science & Technology</span></a>
</li>
<li class="toclevel-1 tocsection-4">
<a href="#Other_uses"><span class="tocnumber">4</span> <span class="toctext">Other uses</span></a>
</li>
<li class="toclevel-1 tocsection-5">
<a href="#See_also"><span class="tocnumber">5</span> <span class="toctext">See also</span></a>
</li>
</ul>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>
<b>
FD
</b>
may stand for:
</p>
<h2>
<span class="editsection">
[
<a href="/w/index.php?title=FD&action=edit&section=1" title="Edit section: Transportation">edit</a>
]
</span>
<span class="mw-headline" id="Transportation">
Transportation
</span>
</h2>
<ul>
<li>
<a href="/wiki/Thai_AirAsia" title="Thai AirAsia">Thai AirAsia</a>
's IATA code
</li>
<li>
<a href="/wiki/Mazda_RX-7" title="Mazda RX-7">Mazda RX-7</a>
's model designation
</li>
<li>
<a href="/wiki/FH_Phantom" title="FH Phantom" class="mw-redirect">FH Phantom</a>
or FD Phantom, a jet fighter
</li>
<li>
<a href="/wiki/Steam_locomotive_FD" title="Steam locomotive FD" class="mw-redirect">Steam locomotive FD</a>
, a Soviet steam locomotive
</li>
<li>
<a href="/wiki/Flight_director_(aviation)" title="Flight director (aviation)">Flight director (aviation)</a>
</li>
<li>
<a href="/wiki/Flying_Dutchman_(dinghy)" title="Flying Dutchman (dinghy)">Flying Dutchman (dinghy)</a>
</li>
</ul>
<h2>
<span class="editsection">
[
<a href="/w/index.php?title=FD&action=edit&section=2" title="Edit section: Medical">edit</a>
]
</span>
<span class="mw-headline" id="Medical">
Medical
</span>
</h2>
<ul>
<li>
<a href="/wiki/Familial_dysautonomia" title="Familial dysautonomia">Familial dysautonomia</a>
or Riley-Day syndrome, a nervous system disorder
</li>
<li>
<a href="/wiki/Fabry_disease" title="Fabry disease">Fabry disease</a>
</li>
</ul>
<h2>
<span class="editsection">
[
<a href="/w/index.php?title=FD&action=edit&section=3" title="Edit section: Science & Technology">edit</a>
]
</span>
<span class="mw-headline" id="Science_.26_Technology">
Science & Technology
</span>
</h2>
<ul>
<li>
<a href="/wiki/Canon_FD_lens_mount" title="Canon FD lens mount">Canon FD lens mount</a>
</li>
<li>
F–D, as in
<a href="/wiki/Fermi%E2%80%93Dirac_statistics" title="Fermi–Dirac statistics">Fermi–Dirac statistics</a>
</li>
<li>
<a href="/wiki/Ferredoxin" title="Ferredoxin">Ferredoxin</a>
(fd), a molecule functioning in electron transfer
</li>
<li>
<a href="/wiki/File_descriptor" title="File descriptor">File descriptor</a>
, a component in the Unix operating system
</li>
<li>
<a href="/wiki/Finite_difference" title="Finite difference">Finite difference</a>
, a mathematical expression
</li>
<li>
<a href="/wiki/Floppy_disk" title="Floppy disk">Floppy disk</a>
, a data storage device
</li>
<li>
<a href="/wiki/FreeDOS" title="FreeDOS">FreeDOS</a>
(FD), an open-source DOS-compatible operating system
</li>
<li>
<a href="/wiki/Functional_dependency" title="Functional dependency">Functional dependency</a>
, a constraint in a relation from a database
</li>
<li>
<a href="/wiki/Full_disclosure" title="Full disclosure">Full disclosure</a>
</li>
</ul>
<h2>
<span class="editsection">
[
<a href="/w/index.php?title=FD&action=edit&section=4" title="Edit section: Other uses">edit</a>
]
</span>
<span class="mw-headline" id="Other_uses">
Other uses
</span>
</h2>
<ul>
<li>
<a href="/wiki/Felony_disenfranchisement" title="Felony disenfranchisement">Felony disenfranchisement</a>
, restricting former felons from voting in an election
</li>
<li>
<a href="/wiki/Fidei_defensor" title="Fidei defensor">Fidei defensor</a>
</li>
<li>
<a href="/wiki/Fire_department" title="Fire department">Fire department</a>
</li>
<li>
<a href="/wiki/Fortified_District" title="Fortified District">Fortified District</a>
, a defensive fortified organization of the Imperial Japanese Army (World War II)
</li>
<li>
<a href="/wiki/Foundation_Degree" title="Foundation Degree" class="mw-redirect">Foundation Degree</a>
, a vocational qualification in the United Kingdom
</li>
<li>
<a href="/wiki/Free_dance_(figure_skating)" title="Free dance (figure skating)">Free dance (figure skating)</a>
, usually the third part of an ice dancing competition
</li>
<li>
<a href="/wiki/Funeral_director" title="Funeral director">Funeral director</a>
, a professional involved in the business of funeral rites
</li>
<li>
<a href="/wiki/St._John%27s_Fog_Devils" title="St. John's Fog Devils">St. John's Fog Devils</a>
, the name for a former Quebec Major Junior Hockey League team based in St. John's
in Newfoundland and Labrador, Canada
</li>
</ul>
<h2>
<span class="editsection">
[
<a href="/w/index.php?title=FD&action=edit&section=5" title="Edit section: See also">edit</a>
]
</span>
<span class="mw-headline" id="See_also">
See also
</span>
</h2>
<ul>
<li>
<a href="/wiki/Flash_drive" title="Flash drive">Flash drive</a>
</li>
<li>
<a href="/wiki/Full-duplex" title="Full-duplex" class="mw-redirect">Full-duplex</a>
(FDX), the description for a two way communication system
</li>
</ul>
<table id="disambigbox" class="metadata plainlinks dmbox dmbox-disambig" style="">
<tr>
<td class="mbox-image" style="padding: 2px 0 2px 0.4em;">
<a href="/wiki/File:Disambig_gray.svg" class="image"><img alt="Disambiguation icon" src="//upload.wikimedia.org/wikipedia/en/thumb/5/5f/Disambig_gray.svg/30px-Disambig_gray.svg.png" width="30" height="23" /></a>
</td>
<td class="mbox-text" style="padding: 0.25em 0.4em; font-style: italic;">
This
<a href="/wiki/Help:Disambiguation" title="Help:Disambiguation">disambiguation</a>
page lists articles associated with the same title.
<br />
<small>
If an
<a class="external text" href="//en.wikipedia.org/w/index.php?title=Special:WhatLinksHere/FD&namespace=0">internal link</a>
led you here, you may wish to change the link to point directly to the intended
article.
</small>
</td>
</tr>
</table>
<!-- NewPP limit report Preprocessor node count: 1325/1000000 Post-expand include
size: 4354/2048000 bytes Template argument size: 1274/2048000 bytes Expensive parser
function count: 0/500 -->
<!-- Saved in parser cache with key enwiki:pcache:idhash:418966-0!*!0!!en!4!* and
timestamp 20120322092400 -->
</div>
<!-- /bodycontent -->
<!-- printfooter -->
<div class="printfooter">
Retrieved from "
<a href="http://en.wikipedia.org/w/index.php?title=FD&oldid=480170548">http://en.wikipedia.org/w/index.php?title=FD&oldid=480170548</a>
"
</div>
<!-- /printfooter -->
<!-- catlinks -->
<div id='catlinks' class='catlinks'>
<div id="mw-normal-catlinks" class="mw-normal-catlinks">
<a href="/wiki/Special:Categories" title="Special:Categories">Categories</a>
:
<ul>
<li>
<a href="/wiki/Category:Disambiguation_pages" title="Category:Disambiguation pages">Disambiguation pages</a>
</li>
</ul>
</div>
<div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">
Hidden categories:
<ul>
<li>
<a href="/wiki/Category:All_article_disambiguation_pages" title="Category:All article disambiguation pages">All article disambiguation pages</a>
</li>
<li>
<a href="/wiki/Category:All_disambiguation_pages" title="Category:All disambiguation pages">All disambiguation pages</a>
</li>
<li>
<a href="/wiki/Category:Article_Feedback_Blacklist" title="Category:Article Feedback Blacklist">Article Feedback Blacklist</a>
</li>
</ul>
</div>
</div>
<!-- /catlinks -->
<div class="visualClear">
</div>
<!-- debughtml -->
<!-- /debughtml -->
</div>
<!-- /bodyContent -->
</div>
<!-- /content -->
<!-- header -->
<div id="mw-head" class="noprint">
<!-- 0 -->
<div id="p-personal" class="">
<h5>
Personal tools
</h5>
<ul>
<li id="pt-login">
<a href="/w/index.php?title=Special:UserLogin&returnto=FD" title="You are encouraged to log in; however, it is not mandatory. [o]"
accesskey="o">Log in / create account</a>
</li>
</ul>
</div>
<!-- /0 -->
<div id="left-navigation">
<!-- 0 -->
<div id="p-namespaces" class="vectorTabs">
<h5>
Namespaces
</h5>
<ul>
<li id="ca-nstab-main" class="selected">
<span>
<a href="/wiki/FD" title="View the content page [c]" accesskey="c">Article</a>
</span>
</li>
<li id="ca-talk">
<span>
<a href="/wiki/Talk:FD" title="Discussion about the content page [t]" accesskey="t">Talk</a>
</span>
</li>
</ul>
</div>
<!-- /0 -->
<!-- 1 -->
<div id="p-variants" class="vectorMenu emptyPortlet">
<h4>
</h4>
<h5>
<span>
Variants
</span>
<a href="#"></a>
</h5>
<div class="menu">
<ul>
</ul>
</div>
</div>
<!-- /1 -->
</div>
<div id="right-navigation">
<!-- 0 -->
<div id="p-views" class="vectorTabs">
<h5>
Views
</h5>
<ul>
<li id="ca-view" class="selected">
<span>
<a href="/wiki/FD">Read</a>
</span>
</li>
<li id="ca-edit">
<span>
<a href="/w/index.php?title=FD&action=edit" title="You can edit this page. Please use the preview button before saving. [e]"
accesskey="e">Edit</a>
</span>
</li>
<li id="ca-history" class="collapsible">
<span>
<a href="/w/index.php?title=FD&action=history" title="Past versions of this page [h]"
accesskey="h">View history</a>
</span>
</li>
</ul>
</div>
<!-- /0 -->
<!-- 1 -->
<div id="p-cactions" class="vectorMenu emptyPortlet">
<h5>
<span>
Actions
</span>
<a href="#"></a>
</h5>
<div class="menu">
<ul>
</ul>
</div>
</div>
<!-- /1 -->
<!-- 2 -->
<div id="p-search">
<h5>
<label for="searchInput">
Search
</label>
</h5>
<form action="/w/index.php" id="searchform">
<div id="simpleSearch">
<input type="text" name="search" value="" title="Search Wikipedia [f]" accesskey="f"
id="searchInput" />
<button type="submit" name="button" title="Search Wikipedia for this text" id="searchButton">
<img src="//bits.wikimedia.org/skins-1.19/vector/images/search-ltr.png?303-4" alt="Search"
/>
</button>
<input type='hidden' name="title" value="Special:Search" />
</div>
</form>
</div>
<!-- /2 -->
</div>
</div>
<!-- /header -->
<!-- panel -->
<div id="mw-panel" class="noprint">
<!-- logo -->
<div id="p-logo">
<a style="background-image: url(//upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png);"
href="/wiki/Main_Page" title="Visit the main page"></a>
</div>
<!-- /logo -->
<!-- navigation -->
<div class="portal" id='p-navigation'>
<h5>
Navigation
</h5>
<div class="body">
<ul>
<li id="n-mainpage-description">
<a href="/wiki/Main_Page" title="Visit the main page [z]" accesskey="z">Main page</a>
</li>
<li id="n-contents">
<a href="/wiki/Portal:Contents" title="Guides to browsing Wikipedia">Contents</a>
</li>
<li id="n-featuredcontent">
<a href="/wiki/Portal:Featured_content" title="Featured content – the best of Wikipedia">Featured content</a>
</li>
<li id="n-currentevents">
<a href="/wiki/Portal:Current_events" title="Find background information on current events">Current events</a>
</li>
<li id="n-randompage">
<a href="/wiki/Special:Random" title="Load a random article [x]" accesskey="x">Random article</a>
</li>
<li id="n-sitesupport">
<a href="//wikimediafoundation.org/wiki/Special:Landingcheck?landing_page=WMFJA085&language=en&utm_source=donate&utm_medium=sidebar&utm_campaign=20101204SB002"
title="Support us">Donate to Wikipedia</a>
</li>
</ul>
</div>
</div>
<!-- /navigation -->
<!-- SEARCH -->
<!-- /SEARCH -->
<!-- interaction -->
<div class="portal" id='p-interaction'>
<h5>
Interaction
</h5>
<div class="body">
<ul>
<li id="n-help">
<a href="/wiki/Help:Contents" title="Guidance on how to use and edit Wikipedia">Help</a>
</li>
<li id="n-aboutsite">
<a href="/wiki/Wikipedia:About" title="Find out about Wikipedia">About Wikipedia</a>
</li>
<li id="n-portal">
<a href="/wiki/Wikipedia:Community_portal" title="About the project, what you can do, where to find things">Community portal</a>
</li>
<li id="n-recentchanges">
<a href="/wiki/Special:RecentChanges" title="A list of recent changes in the wiki [r]"
accesskey="r">Recent changes</a>
</li>
<li id="n-contact">
<a href="/wiki/Wikipedia:Contact_us" title="How to contact Wikipedia">Contact Wikipedia</a>
</li>
</ul>
</div>
</div>
<!-- /interaction -->
<!-- TOOLBOX -->
<div class="portal" id='p-tb'>
<h5>
Toolbox
</h5>
<div class="body">
<ul>
<li id="t-whatlinkshere">
<a href="/wiki/Special:WhatLinksHere/FD" title="List of all English Wikipedia pages containing links to this page [j]"
accesskey="j">What links here</a>
</li>
<li id="t-recentchangeslinked">
<a href="/wiki/Special:RecentChangesLinked/FD" title="Recent changes in pages linked from this page [k]"
accesskey="k">Related changes</a>
</li>
<li id="t-upload">
<a href="/wiki/Wikipedia:Upload" title="Upload files [u]" accesskey="u">Upload file</a>
</li>
<li id="t-specialpages">
<a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q">Special pages</a>
</li>
<li id="t-permalink">
<a href="/w/index.php?title=FD&oldid=480170548" title="Permanent link to this revision of the page">Permanent link</a>
</li>
<li id="t-cite">
<a href="/w/index.php?title=Special:Cite&page=FD&id=480170548" title="Information on how to cite this page">Cite this page</a>
</li>
</ul>
</div>
</div>
<!-- /TOOLBOX -->
<!-- coll-print_export -->
<div class="portal" id='p-coll-print_export'>
<h5>
Print/export
</h5>
<div class="body">
<ul id="collectionPortletList">
<li id="coll-create_a_book">
<a href="/w/index.php?title=Special:Book&bookcmd=book_creator&referer=FD"
title="Create a book or page collection" rel="nofollow">Create a book</a>
</li>
<li id="coll-download-as-rl">
<a href="/w/index.php?title=Special:Book&bookcmd=render_article&arttitle=FD&oldid=480170548&writer=rl"
title="Download a PDF version of this wiki page" rel="nofollow">Download as PDF</a>
</li>
<li id="t-print">
<a href="/w/index.php?title=FD&printable=yes" title="Printable version of this page [p]"
accesskey="p">Printable version</a>
</li>
</ul>
</div>
</div>
<!-- /coll-print_export -->
<!-- LANGUAGES -->
<div class="portal" id='p-lang'>
<h5>
Languages
</h5>
<div class="body">
<ul>
<li class="interwiki-de">
<a href="//de.wikipedia.org/wiki/FD" title="FD" lang="de" hreflang="de">Deutsch</a>
</li>
<li class="interwiki-es">
<a href="//es.wikipedia.org/wiki/FD" title="FD" lang="es" hreflang="es">Español</a>
</li>
<li class="interwiki-fa">
<a href="//fa.wikipedia.org/wiki/FD" title="FD" lang="fa" hreflang="fa">فارسی</a>
</li>
<li class="interwiki-fr">
<a href="//fr.wikipedia.org/wiki/FD" title="FD" lang="fr" hreflang="fr">Français</a>
</li>
<li class="interwiki-ko">
<a href="//ko.wikipedia.org/wiki/FD" title="FD" lang="ko" hreflang="ko">한국어</a>
</li>
<li class="interwiki-it">
<a href="//it.wikipedia.org/wiki/FD" title="FD" lang="it" hreflang="it">Italiano</a>
</li>
<li class="interwiki-sw">
<a href="//sw.wikipedia.org/wiki/FD" title="FD" lang="sw" hreflang="sw">Kiswahili</a>
</li>
<li class="interwiki-lt">
<a href="//lt.wikipedia.org/wiki/FD" title="FD" lang="lt" hreflang="lt">Lietuvių</a>
</li>
<li class="interwiki-nl">
<a href="//nl.wikipedia.org/wiki/FD" title="FD" lang="nl" hreflang="nl">Nederlands</a>
</li>
<li class="interwiki-ja">
<a href="//ja.wikipedia.org/wiki/FD" title="FD" lang="ja" hreflang="ja">日本語</a>
</li>
<li class="interwiki-ru">
<a href="//ru.wikipedia.org/wiki/FD" title="FD" lang="ru" hreflang="ru">Русский</a>
</li>
<li class="interwiki-sv">
<a href="//sv.wikipedia.org/wiki/FD" title="FD" lang="sv" hreflang="sv">Svenska</a>
</li>
<li class="interwiki-zh">
<a href="//zh.wikipedia.org/wiki/FD" title="FD" lang="zh" hreflang="zh">中文</a>
</li>
</ul>
</div>
</div>
<!-- /LANGUAGES -->
</div>
<!-- /panel -->
<!-- footer -->
<div id="footer">
<ul id="footer-info">
<li id="footer-info-lastmod">
This page was last modified on 22 March 2012 at 09:24.
<br />
</li>
<li id="footer-info-copyright">
Text is available under the
<a rel="license" href="//en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License">Creative Commons Attribution-ShareAlike License</a>
<a rel="license" href="//creativecommons.org/licenses/by-sa/3.0/" style="display:none;"></a>
; additional terms may apply. See
<a href="//wikimediafoundation.org/wiki/Terms_of_use">Terms of use</a>
for details.
<br/>
Wikipedia® is a registered trademark of the
<a href="//www.wikimediafoundation.org/">Wikimedia Foundation, Inc.</a>
, a non-profit organization.
<br />
</li>
<li class="noprint">
<a class='internal' href="//en.wikipedia.org/wiki/Wikipedia:Contact_us">Contact us</a>
</li>
</ul>
<ul id="footer-places">
<li id="footer-places-privacy">
<a href="//wikimediafoundation.org/wiki/Privacy_policy" title="wikimedia:Privacy policy">Privacy policy</a>
</li>
<li id="footer-places-about">
<a href="/wiki/Wikipedia:About" title="Wikipedia:About">About Wikipedia</a>
</li>
<li id="footer-places-disclaimer">
<a href="/wiki/Wikipedia:General_disclaimer" title="Wikipedia:General disclaimer">Disclaimers</a>
</li>
<li id="footer-places-mobileview">
<a href='//en.m.wikipedia.org/w/index.php?title=FD&useformat=mobile' class='noprint'>Mobile view</a>
</li>
</ul>
<ul id="footer-icons" class="noprint">
<li id="footer-copyrightico">
<a href="//wikimediafoundation.org/"><img src="//bits.wikimedia.org/images/wikimedia-button.png" width="88" height="31" alt="Wikimedia Foundation"/></a>
</li>
<li id="footer-poweredbyico">
<a href="//www.mediawiki.org/"><img src="//bits.wikimedia.org/skins-1.19/common/images/poweredby_mediawiki_88x31.png" alt="Powered by MediaWiki" width="88" height="31" /></a>
</li>
</ul>
<div style="clear:both">
</div>
</div>
function el(string) {
if (string.charAt(0) === '#') {
return document.getElementById(string.substr(1, string.length));
}
}
//to be fair, I'll wrap getElementById in a function and return the object
var boolean = true;
function byId(id) {
if (boolean) return document.getElementById(id);
}
Ready to run.
Test | Ops/sec | |
---|---|---|
Wrapped Raw |
| ready |
Straight getElementById |
| ready |
Jquery |
| ready |
Zepto |
| ready |
Raw/baseline |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.