leotests

JavaScript performance comparison

Revision 7 of this test case created by AlexZ

Preparation code

<script src="https://cdn.jsdelivr.net/lodash/4.17.4/lodash.min.js"></script>
      
<script>
Benchmark.prototype.setup = function() {
  var vm = {"cardTypes":[{"code":"visa","name":"Visa"},{"code":"disc","name":"Discover"},{"code":"amex","name":"American Express"},{"code":"master","name":"MasterCard"}],"months":[{"code":"1","name":"01"},{"code":"2","name":"02"},{"code":"3","name":"03"},{"code":"4","name":"04"},{"code":"5","name":"05"},{"code":"6","name":"06"},{"code":"7","name":"07"},{"code":"8","name":"08"},{"code":"9","name":"09"},{"code":"10","name":"10"},{"code":"11","name":"11"},{"code":"12","name":"12"}],"startYears":[{"code":"2017","name":"2017"},{"code":"2016","name":"2016"},{"code":"2015","name":"2015"},{"code":"2014","name":"2014"},{"code":"2013","name":"2013"},{"code":"2012","name":"2012"}],"expiryYears":[{"code":"2017","name":"2017"},{"code":"2018","name":"2018"},{"code":"2019","name":"2019"},{"code":"2020","name":"2020"},{"code":"2021","name":"2021"},{"code":"2022","name":"2022"},{"code":"2023","name":"2023"},{"code":"2024","name":"2024"},{"code":"2025","name":"2025"},{"code":"2026","name":"2026"},{"code":"2027","name":"2027"}],"regions":null,"userId":"8797272768516","countries":[{"isocode":"ALB","name":"Albania","regions":[]},{"isocode":"AND","name":"Andorra","regions":[]},{"isocode":"AIA","name":"Anguilla","regions":[]},{"isocode":"ATG","name":"Antigua and Barbuda","regions":[]},{"isocode":"ABW","name":"Aruba","regions":[]},{"isocode":"AUS","name":"Australia","regions":[]},{"isocode":"AUT","name":"Austria","regions":[]},{"isocode":"BHS","name":"Bahamas","regions":[]},{"isocode":"BHR","name":"Bahrain","regions":[]},{"isocode":"BGD","name":"Bangladesh","regions":[]},{"isocode":"BRB","name":"Barbados","regions":[]},{"isocode":"BEL","name":"Belgium","regions":[]},{"isocode":"BMU","name":"Bermuda","regions":[]},{"isocode":"BOL","name":"Bolivia","regions":[]},{"isocode":"BRA","name":"Brazil","regions":[]},{"isocode":"BFA","name":"Burkina Faso","regions":[]},{"isocode":"CAN","name":"Canada","regions":[{"isocode":"CA-NB","isocodeShort":"NB","countryIso":"CAN","name":"New Brunswick"},{"isocode":"CA-AB","isocodeShort":"AB","countryIso":"CAN","name":"Alberta"},{"isocode":"CA-BC","isocodeShort":"BC","countryIso":"CAN","name":"British Columbia"},{"isocode":"CA-MB","isocodeShort":"MB","countryIso":"CAN","name":"Manitoba"},{"isocode":"CA-ON","isocodeShort":"ON","countryIso":"CAN","name":"Ontario"},{"isocode":"CA-NS","isocodeShort":"NS","countryIso":"CAN","name":"Nova Scotia"},{"isocode":"CA-PE","isocodeShort":"PE","countryIso":"CAN","name":"Prince Edward Island"},{"isocode":"CA-NL","isocodeShort":"NL","countryIso":"CAN","name":"Newfoundland and Labrador"},{"isocode":"CA-QC","isocodeShort":"QC","countryIso":"CAN","name":"Quebec"},{"isocode":"CA-SK","isocodeShort":"SK","countryIso":"CAN","name":"Saskatchewan"},{"isocode":"CA-NT","isocodeShort":"NT","countryIso":"CAN","name":"Northern Territories"},{"isocode":"CA-NU","isocodeShort":"NU","countryIso":"CAN","name":"Nunavut"},{"isocode":"CA-YT","isocodeShort":"YT","countryIso":"CAN","name":"Yukon Territory"}]},{"isocode":"CPV","name":"Cape Verde","regions":[]},{"isocode":"CYM","name":"Cayman Islands","regions":[]},{"isocode":"CAF","name":"Central African Republic","regions":[]},{"isocode":"CHN","name":"China","regions":[]},{"isocode":"COL","name":"Colombia","regions":[]},{"isocode":"CRI","name":"Costa Rica","regions":[]},{"isocode":"HRV","name":"Croatia","regions":[]},{"isocode":"CYP","name":"Cyprus","regions":[]},{"isocode":"DNK","name":"Denmark","regions":[]},{"isocode":"DJI","name":"Djibouti","regions":[]},{"isocode":"DMA","name":"Dominica","regions":[]},{"isocode":"DOM","name":"Dominican Republic","regions":[]},{"isocode":"ECU","name":"Ecuador","regions":[]},{"isocode":"SLV","name":"El Salvador","regions":[]},{"isocode":"ETH","name":"Ethiopia","regions":[]},{"isocode":"FJI","name":"Fiji","regions":[]},{"isocode":"FIN","name":"Finland","regions":[]},{"isocode":"FRA","name":"France","regions":[]},{"isocode":"GUF","name":"French Guiana","regions":[]},{"isocode":"DEU","name":"Germany","regions":[]},{"isocode":"GIB","name":"Gibraltar","regions":[]},{"isocode":"GRC","name":"Greece","regions":[]},{"isocode":"GRL","name":"Greenland","regions":[]},{"isocode":"GRD","name":"Grenada","regions":[]},{"isocode":"GLP","name":"Guadeloupe","regions":[]},{"isocode":"GTM","name":"Guatemala","regions":[]},{"isocode":"GUY","name":"Guyana","regions":[]},{"isocode":"HTI","name":"Haiti","regions":[]},{"isocode":"HND","name":"Honduras","regions":[]},{"isocode":"HKG","name":"Hong Kong","regions":[]},{"isocode":"ISL","name":"Iceland","regions":[]},{"isocode":"IND","name":"India","regions":[]},{"isocode":"IRL","name":"Ireland","regions":[]},{"isocode":"ISR","name":"Israel","regions":[]},{"isocode":"ITA","name":"Italy","regions":[]},{"isocode":"JAM","name":"Jamaica","regions":[]},{"isocode":"JPN","name":"Japan","regions":[]},{"isocode":"KEN","name":"Kenya","regions":[]},{"isocode":"KIR","name":"Kiribati","regions":[]},{"isocode":"KWT","name":"Kuwait","regions":[]},{"isocode":"LVA","name":"Latvia","regions":[]},{"isocode":"LSO","name":"Lesotho","regions":[]},{"isocode":"LIE","name":"Liechtenstein","regions":[]},{"isocode":"LUX","name":"Luxembourg","regions":[]},{"isocode":"MAC","name":"Macau","regions":[]},{"isocode":"MDG","name":"Madagascar","regions":[]},{"isocode":"MWI","name":"Malawi","regions":[]},{"isocode":"MYS","name":"Malaysia","regions":[]},{"isocode":"MDV","name":"Maldives","regions":[]},{"isocode":"MLI","name":"Mali","regions":[]},{"isocode":"MLT","name":"Malta","regions":[]},{"isocode":"MTQ","name":"Martinique","regions":[]},{"isocode":"MRT","name":"Mauritania","regions":[]},{"isocode":"MUS","name":"Mauritius","regions":[]},{"isocode":"MEX","name":"Mexico","regions":[]},{"isocode":"MCO","name":"Monaco","regions":[]},{"isocode":"MSR","name":"Montserrat","regions":[]},{"isocode":"MOZ","name":"Mozambique","regions":[]},{"isocode":"BUR","name":"Myanmar","regions":[]},{"isocode":"NLD","name":"Netherlands","regions":[]},{"isocode":"NCL","name":"New Caledonia","regions":[]},{"isocode":"NZL","name":"New Zealand","regions":[]},{"isocode":"NIC","name":"Nicaragua","regions":[]},{"isocode":"NOR","name":"Norway","regions":[]},{"isocode":"OMN","name":"Oman","regions":[]},{"isocode":"PAN","name":"Panama","regions":[]},{"isocode":"PNG","name":"Papua New Guinea","regions":[]},{"isocode":"PRY","name":"Paraguay","regions":[]},{"isocode":"PER","name":"Peru","regions":[]},{"isocode":"POL","name":"Poland","regions":[]},{"isocode":"PRT","name":"Portugal","regions":[]},{"isocode":"QAT","name":"Qatar","regions":[]},{"isocode":"REU","name":"Reunion","regions":[]},{"isocode":"KNA","name":"Saint Kitts and Nevis","regions":[]},{"isocode":"SMR","name":"San Marino","regions":[]},{"isocode":"SAU","name":"Saudi Arabia","regions":[]},{"isocode":"SYC","name":"Seychelles","regions":[]},{"isocode":"SGP","name":"Singapore","regions":[]},{"isocode":"SVK","name":"Slovakia (Slovak Republic)","regions":[]},{"isocode":"SLB","name":"Solomon Islands","regions":[]},{"isocode":"KOR","name":"South Korea","regions":[]},{"isocode":"ESP","name":"Spain","regions":[]},{"isocode":"LKA","name":"Sri Lanka","regions":[]},{"isocode":"SUR","name":"Suriname","regions":[]},{"isocode":"SWZ","name":"Swaziland","regions":[]},{"isocode":"SWE","name":"Sweden","regions":[]},{"isocode":"CHE","name":"Switzerland","regions":[]},{"isocode":"TWN","name":"Taiwan","regions":[]},{"isocode":"TJK","name":"Tajikistan","regions":[]},{"isocode":"TZA","name":"Tanzania","regions":[]},{"isocode":"THA","name":"Thailand","regions":[]},{"isocode":"TON","name":"Tonga","regions":[]},{"isocode":"TTO","name":"Trinidad and Tobago","regions":[]},{"isocode":"TUN","name":"Tunisia","regions":[]},{"isocode":"TUR","name":"Turkey","regions":[]},{"isocode":"TCA","name":"Turks and Caicos Islands","regions":[]},{"isocode":"TUV","name":"Tuvalu","regions":[]},{"isocode":"ARE","name":"United Arab Emirates","regions":[]},{"isocode":"GBR","name":"United Kingdom","regions":[]},{"isocode":"USA","name":"United States","regions":[{"isocode":"US-AL","isocodeShort":"AL","countryIso":"USA","name":"Alabama"},{"isocode":"US-DE","isocodeShort":"DE","countryIso":"USA","name":"Delaware"},{"isocode":"US-CO","isocodeShort":"CO","countryIso":"USA","name":"Colorado"},{"isocode":"US-AK","isocodeShort":"AK","countryIso":"USA","name":"Alaska"},{"isocode":"US-CA","isocodeShort":"CA","countryIso":"USA","name":"California"},{"isocode":"US-AZ","isocodeShort":"AZ","countryIso":"USA","name":"Arizona"},{"isocode":"US-AR","isocodeShort":"AR","countryIso":"USA","name":"Arkansas"},{"isocode":"US-CT","isocodeShort":"CT","countryIso":"USA","name":"Connecticut"},{"isocode":"US-FL","isocodeShort":"FL","countryIso":"USA","name":"Florida"},{"isocode":"US-GA","isocodeShort":"GA","countryIso":"USA","name":"Georgia"},{"isocode":"US-HI","isocodeShort":"HI","countryIso":"USA","name":"Hawaii"},{"isocode":"US-IL","isocodeShort":"IL","countryIso":"USA","name":"Illinois"},{"isocode":"US-IN","isocodeShort":"IN","countryIso":"USA","name":"Indiana"},{"isocode":"US-IA","isocodeShort":"IA","countryIso":"USA","name":"Iowa"},{"isocode":"US-ID","isocodeShort":"ID","countryIso":"USA","name":"Idaho"},{"isocode":"US-LA","isocodeShort":"LA","countryIso":"USA","name":"Louisiana"},{"isocode":"US-KY","isocodeShort":"KY","countryIso":"USA","name":"Kentucky"},{"isocode":"US-MN","isocodeShort":"MN","countryIso":"USA","name":"Minnesota"},{"isocode":"US-ME","isocodeShort":"ME","countryIso":"USA","name":"Maine"},{"isocode":"US-MA","isocodeShort":"MA","countryIso":"USA","name":"Massachusetts"},{"isocode":"US-MD","isocodeShort":"MD","countryIso":"USA","name":"Maryland"},{"isocode":"US-MS","isocodeShort":"MS","countryIso":"USA","name":"Mississippi"},{"isocode":"US-MT","isocodeShort":"MT","countryIso":"USA","name":"Montana"},{"isocode":"US-NE","isocodeShort":"NE","countryIso":"USA","name":"Nebraska"},{"isocode":"US-KS","isocodeShort":"KS","countryIso":"USA","name":"Kansas"},{"isocode":"US-NH","isocodeShort":"NH","countryIso":"USA","name":"New Hampshire"},{"isocode":"US-NJ","isocodeShort":"NJ","countryIso":"USA","name":"New Jersey"},{"isocode":"US-NM","isocodeShort":"NM","countryIso":"USA","name":"New Mexico"},{"isocode":"US-MO","isocodeShort":"MO","countryIso":"USA","name":"Missouri"},{"isocode":"US-NV","isocodeShort":"NV","countryIso":"USA","name":"Nevada"},{"isocode":"US-ND","isocodeShort":"ND","countryIso":"USA","name":"North Dakota"},{"isocode":"US-OH","isocodeShort":"OH","countryIso":"USA","name":"Ohio"},{"isocode":"US-OK","isocodeShort":"OK","countryIso":"USA","name":"Oklahoma"},{"isocode":"US-PA","isocodeShort":"PA","countryIso":"USA","name":"Pennsylvania"},{"isocode":"US-OR","isocodeShort":"OR","countryIso":"USA","name":"Oregon"},{"isocode":"US-RI","isocodeShort":"RI","countryIso":"USA","name":"Rhode Island"},{"isocode":"US-NY","isocodeShort":"NY","countryIso":"USA","name":"New York"},{"isocode":"US-MI","isocodeShort":"MI","countryIso":"USA","name":"Michigan"},{"isocode":"US-SC","isocodeShort":"SC","countryIso":"USA","name":"South Carolina"},{"isocode":"US-SD","isocodeShort":"SD","countryIso":"USA","name":"South Dakota"},{"isocode":"US-TX","isocodeShort":"TX","countryIso":"USA","name":"Texas"},{"isocode":"US-VT","isocodeShort":"VT","countryIso":"USA","name":"Vermont"},{"isocode":"US-UT","isocodeShort":"UT","countryIso":"USA","name":"Utah"},{"isocode":"US-VA","isocodeShort":"VA","countryIso":"USA","name":"Virginia"},{"isocode":"US-WA","isocodeShort":"WA","countryIso":"USA","name":"Washington"},{"isocode":"US-WV","isocodeShort":"WV","countryIso":"USA","name":"West Virginia"},{"isocode":"US-WI","isocodeShort":"WI","countryIso":"USA","name":"Wisconsin"},{"isocode":"US-DC","isocodeShort":"DC","countryIso":"USA","name":"District of Columbia"},{"isocode":"US-WY","isocodeShort":"WY","countryIso":"USA","name":"Wyoming"},{"isocode":"US-GU","isocodeShort":"GU","countryIso":"USA","name":"Guam"},{"isocode":"US-TN","isocodeShort":"TN","countryIso":"USA","name":"Tennessee"},{"isocode":"US-MP","isocodeShort":"MP","countryIso":"USA","name":"Northern Mariana Islands"},{"isocode":"US-PR","isocodeShort":"PR","countryIso":"USA","name":"Puerto Rico"},{"isocode":"US-UM","isocodeShort":"UM","countryIso":"USA","name":"United States Minor Outlying Islands"},{"isocode":"US-VI","isocodeShort":"VI","countryIso":"USA","name":"United States Virgin Islands"},{"isocode":"US-NC","isocodeShort":"NC","countryIso":"USA","name":"North Carolina"},{"isocode":"US-AS","isocodeShort":"AS","countryIso":"USA","name":"American Samoa"}]},{"isocode":"URY","name":"Uruguay","regions":[]},{"isocode":"VUT","name":"Vanuatu","regions":[]},{"isocode":"VAT","name":"Vatican City State (Holy Siege)","regions":[]},{"isocode":"VEN","name":"Venezuela","regions":[]},{"isocode":"VNM","name":"Vietnam","regions":[]},{"isocode":"VGB","name":"Virgin Islands (British)","regions":[]},{"isocode":"YEM","name":"Yemen","regions":[]},{"isocode":"ZMB","name":"Zambia","regions":[]},{"isocode":"ZWE","name":"Zimbabwe","regions":[]}]}

};
</script>

Test runner

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

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec

Revisions

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

0 Comments