dumb test (v4)

Revision 4 of this benchmark created on


Setup

function getIntersectMap(arr, map) {
  const returnMap = new Map()
  for (let i = 0; i < arr.length; i++) {
    if (!map.size) {
      returnMap.set(arr[i], i)
    } else {
      if (map.has(arr[i]) && !returnMap.has(arr[i])) {
        returnMap.set(arr[i], i)
      }
    }
  }
  return returnMap
}

function intersect_isamrish() {
  const initialMap = new Map()
  const arrays = Array.from(arguments) // I am assuming, all the arguments will be arrays.
  const resultMap = arrays?.reduce(function _(acc, currentVal) {
    return getIntersectMap(currentVal, acc)
  }, initialMap)

  return Array.from(resultMap.keys())
}

function intersect_blackholesinthesky(...arrays) {
  const [smallestSet, ...otherSets] = arrays.map((arr) => new Set(arr)).sort((a, b) => a.size - b.size);

  return Array.from(smallestSet.values()).filter((val) => otherSets.every((set) => set.has(val)));
}

function intersect_jeremrx(...arrays) {
  return arrays?.reduce((intersection, currentArray) => {
    const intersectionSet = new Set(intersection);
    return currentArray.filter((item) => intersectionSet.has(item));
  });
}


function intersect_jeremrx_2(firstArray, ...otherArrays) {
  const intersection = new Set(firstArray);
  otherArrays.forEach((array) =>
    array.forEach((item) => intersection.has(item) || intersection.delete(item))
  );
  return [...intersection];
}


const arrstr__1 = [
  "Item 1",
  "Item 2",
  "Item 3",
  "Item 4",
  "Item 5",
  "Item 6",
  "Item 7",
  "Item 68"
]
const arrstr__2 = ["Item 6", "Item 3", "Item 4", "Item 5", "Item 6", "Item 7", "Item 11", "Item 13"]
const arrstr__3 = ["Item 4", "Item 7", "Item 5", "Item 6", "Item 8", "Item 9"]
const arrstr__4 = ["Item 7", "Item 5", "Item 6", "Item 8", "Item 9", "Item 10"]
const arrstr__5 = ["Item 6"]

const iata = [
    "Interstate Airlines",
    "Fly Jordan",
    "West Link Airlines",
    "Palau National Airlines",
    "Blue Air",
    "Lucky Air",
    "KLM Cityhopper",
    "Hydro - Quebec",
    "Guangxi Beibu Gulf Airlines Co., Ltd.",
    "Lignes Aeriennes Congolaises",
    "Air Antilles Express",
    "Marsland Aviation",
    "Kenn Borek Air Ltd.",
    "Chengdu Airlines",
    "British Airways",
    "Iran Aseman Airlines",
    "Tarom",
    "Swoop",
    "Mesa Airlines",
    "IHY Izmir Havayollari A.S.",
    "Fortune",
    "Peach",
    "Air Ocean",
    "Moldavian Airlines",
    "SKOL",
    "Nordwind Airlines",
    "Air Zimbabwe",
    "Solomon Airlines",
    "New England Airlines",
    "CJSC Royal Flight airlines",
    "French Blue",
    "Wideroe",
    "Valuair",
    "FlyArystan",
    "Air Mobility Command",
    "HiSky",
    "easyJet Switzerland",
    "BA Cityflyer",
    "Webjet Linhas Aereas",
    "Nova Airways",
    "Sky-Taxi",
    "Aeropelican Air Services",
    "BH Air",
    "PAL Express",
    "Volaris",
    "East African Safari Air",
    "European Air Transport",
    "Mistral Air",
    "ExpressJet",
    "Garuda Indonesia",
    "UM Airlines",
    "Hi Fly Ltd",
    "Siam Ga Co. Ltd.",
    "CitizenPlane",
    "Fly540",
    "SiAvia",
    "Thomas Cook Airlines Belgium",
    "SkyUp Airlines",
    "Sunrise Airways",
    "Thai Lion Air",
    "Afrinat International Airlines",
    "LATAM Ecuador",
    "Ravn Alaska",
    "Hunnu Air",
    "Hong Kong Express Airways",
    "Comair",
    "Batik Air",
    "Axess International Network Inc.",
    "Cayman Airways",
    "Safarilink Aviation",
    "DoKaSch",
    "Transportes Aéreos Regionales",
    "Hewlett-Packard (Schweiz) GmbH",
    "Braathens Regional",
    "Air Japan",
    "airblue",
    "Izhavia",
    "Sriwijaya Air",
    "Yan Air Ltd",
    "Amerijet International Inc.",
    "Air Dolomiti",
    "Wamos Air",
    "Jatayu Airlines",
    "Air Canada",
    "AirAsia Zest",
    "Thai Vietjet Air",
    "Travel Technology Interactive SA",
    "Iran Air Tours",
    "Jetstar Japan",
    "Aegean Airlines",
    "Travel Air",
    "Nauru Airline",
    "Sansa Airlines",
    "Republic Airlines",
    "Fly Jamaica Airways",
    "Sunsplash Aviation, LLC.",
    "Cape Air",
    "Grant Aviation, Inc.",
    "BADR AIRLINES",
    "Trans States Airlines",
    "AIS Airlines B.V.",
    "Level",
    "Eaglexpress Air Charter Sdn.Bhd.dbaEaglexpress Air",
    "Tus Airways",
    "SUN-AIR",
    "Air Burkina",
    "BMI Regional",
    "Qatar Airways",
    "Aeromexico",
    "Aerogaviota",
    "Air Lituanica",
    "Maldivian",
    "Eurolot",
    "Air Cargo Germany",
    "Sounds Air Travel & Tourism Ltd.",
    "Jeju Air",
    "Germania",
    "China Eastern Airlines",
    "Ernest Airline",
    "Avior Airlines",
    "Ruili Airlines",
    "Small Planet Airlines",
    "Tandem Aero",
    "Pacific Coastal Airlines",
    "LATAM Argentina",
    "Air Montenegro",
    "LATAM Chile",
    "Atlasjet Ukraine",
    "Héli Sécurité Hélicopter Airline",
    "Miami Air Lease, Inc.",
    "HiSky",
    "Air Italy",
    "Linear Air",
    "Asian Express Airline",
    "Sun-Air of Scandinavia",
    "South African Express",
    "Solar Cargo, C.A.",
    "Gol Transportes Aéreos",
    "American Airlines",
    "SmartLynx Airlines",
    "TurboJET",
    "Niger Airlines",
    "Air Vanuatu",
    "Starlink Aviation",
    "Nesma Airlines",
    "Wizz Air",
    "BB Airways",
    "HOP!",
    "Ibex Airlines",
    "Laparkan Airways, Inc.",
    "Silver Airways",
    "Manx2",
    "Business jet",
    "ChallengAir",
    "SkyWest Airlines",
    "LATAM Paraguay",
    "Northwestern Air",
    "Polar Air Cargo Worldwide, Inc.",
    "Hesa Airlines",
    "NokScoot",
    "Sky Express",
    "Uni Air",
    "Kenya Airways",
    "Germanwings",
    "China Express Airlines",
    "Smartavia",
    "Department of National Defence",
    "Miami Air International",
    "Insel Air",
    "FlyDamas",
    "Air Madagascar",
    "9G Rail",
    "Alaska Airlines",
    "Royal Nepal Airlines",
    "CemAir",
    "Airlines PNG",
    "Air Serbia",
    "Sky Airline",
    "Globus Airlines",
    "iFly Airlines",
    "Aerolineas Argentinas",
    "Aircalin",
    "Air Europa",
    "Sabre Inc.",
    "Air Jamaica",
    "Ariana Afghan Airlines",
    "SpiceJet",
    "Qantas",
    "Trenitalia",
    "Nomad Aviation (PTY) Ltd.",
    "Bamboo Airways",
    "Himalaya Airlines",
    "Compagnie Africaine d'Aviation",
    "MetroJet",
    "Blue Panorama Airlines",
    "SNCF",
    "Olympic Air",
    "KLM",
    "LATAM Brasil",
    "Afriqiyah Airways",
    "Air Mandalay",
    "Shanghai Airlines",
    "Air Service Liege",
    "Mahan Airlines",
    "Vietnam Airlines",
    "TEM Enterprises",
    "Brit Air",
    "Gambia Bird Airlines",
    "National Airlines",
    "Heli Air Monaco",
    "Transavia",
    "Brindabella Airlines",
    "Jet Airways",
    "Conviasa",
    "Bering Air",
    "IBC Airways",
    "TAP Portugal",
    "Yamal Airlines",
    "Scandinavian Airlines",
    "Air Caucasus",
    "SkyJet",
    "Air India Express",
    "LAM Mozambique Airlines",
    "Bek Air",
    "JSC Aircompany ATMA",
    "Grand Canyon Airlines, Inc.dba Scenic Airlines",
    "UIA",
    "Carpatair",
    "TRIP Linhas Aéreas",
    "Air India",
    "Southern Air Charter",
    "SkyBahamas Airlines",
    "Hi Fly",
    "Lufthansa CityLine",
    "Orange Air, LLCN/A",
    "Norwegian Long Haul",
    "Alitalia CityLiner",
    "C.A.I. Second",
    "Air North Charter and Training Ltd.",
    "GoJet Airlines",
    "Bringer Air Cargo",
    "TACV Cabo Verde Airlines",
    "Cargo Three Inc. dba Pan Air Cargo",
    "Airkenya Express",
    "INFINI Travel Information, Inc.",
    "Spring Airlines",
    "As Avies",
    "Chalair Aviation",
    "Air Sinai",
    "Sundair",
    "Saudia",
    "Andes Lineas Aereas",
    "ULS Airlines Cargo",
    "Norwegian Air Shuttle",
    "Travelport Global Distribution SystemB.V.",
    "North-Wright Airways",
    "Corendon Dutch Airlines",
    "Great Lakes Airlines",
    "Pobeda",
    "OpenSkies",
    "Thai AirAsia",
    "Douniah Airlines",
    "Nature Air",
    "Niki",
    "Airlink",
    "Air Berlin",
    "Kunming Airlines",
    "Germania Flug",
    "Caicos Express Airways",
    "Swiftair",
    "BQB Lineas Aereas",
    "Jet2.com",
    "Wizz Air",
    "Ghadames Air Transport",
    "AirBridgeCargo",
    "ITA Airways",
    "Flair Airlines Ltd.",
    "Alaska Seaplane",
    "RUS Aviation",
    "Jet Asia Airways",
    "Dana Airlines Limited",
    "Joon",
    "FlyOne",
    "Air Greenland",
    "Arkia",
    "Navitaire",
    "Air Jet",
    "Korean Air",
    "Aerorepublica",
    "Grumeti Air",
    "Tianjin Airlines",
    "Turkmenistan Airlines",
    "African Express Airways (K)  Limited",
    "Air France",
    "ATA Airlines",
    "Armenia Airways",
    "Spring Airlines Japan",
    "PT.Trigana Air Service",
    "Jetstar Asia",
    "Air Creebec",
    "White Airways",
    "Air China",
    "Joy Air",
    "Japan Airlines",
    "S7 Airlines",
    "Proflight Zambia",
    "Star Peru",
    "Juneyao Airlines",
    "Air Tahiti Nui",
    "Bhutan Airlines",
    "Tigerair Philippines",
    "Air Botswana",
    "US Airways",
    "Regional Express",
    "Air Urga",
    "Belair Airlines",
    "Regional Jet OÜ",
    "Avion Express",
    "Polynesian Airlines",
    "Rutas Aereas, C.A. dba  RUTACA",
    "Skymark Airlines",
    "Air Uganda",
    "Air Arabia Abu Dhabi",
    "Sun Country Airlines",
    "Shenzhen Airlines",
    "Vanilla Air",
    "VIM Airlines",
    "Air KBZ",
    "Bulgarian Air Charter",
    "Raya Airways Sdn. Bhd.dba Raya Airways",
    "Buzz",
    "Pegasus Airlines",
    "Sunday Express",
    "Thomas Cook Airlines",
    "Lufthansa Systems",
    "Vision Airlines",
    "Inter Air",
    "Syrian Arab Airlines",
    "Kam Air",
    "Jetstar",
    "Iberia",
    "MAYAir",
    "Swiss International Air Lines",
    "PT Republic Express Airlines",
    "Public Charters",
    "Air Wisconsin Airlines Corporation(AWAC)",
    "Papillon Airways",
    "Arik Air",
    "Air Excel",
    "Citilink Airlines",
    "Air Saint Pierre",
    "MIAT Mongolian Airlines",
    "Hawkair",
    "Uni-Top Airlines",
    "Tectimes Sudamerica",
    "Air Via Ltd.",
    "NAM Air",
    "Corsair International",
    "Animawings",
    "Vistara",
    "Everts Air Cargo",
    "Afrijet Business Service",
    "Linea Aerea Carguera de Colombia S.A.",
    "Grand China Air",
    "Air Arabia Jordan",
    "VivaAerobus",
    "Lumiwings",
    "Frontier Airlines",
    "TACA Peru",
    "Clairmont Holdings Ltd dba VI Air Link",
    "US-Bangla Airlines",
    "Apsara International Air",
    "Camair-Co",
    "Scoot",
    "Air One",
    "Elite Airways",
    "HOP!",
    "E-Savtravel",
    "Sichuan Airlines",
    "LGW Luftfahrtgesellschaft Walter",
    "StarFlyer",
    "Fuzhou Airlines",
    "Thai Airways",
    "Atlas Global Airlines",
    "ARINC(Aeronautical Radio, Inc.)",
    "STP Airways",
    "Blue Islands",
    "Sun d'Or International Airlines",
    "Helicópteros del Sureste",
    "Canadian North",
    "Shandong Airlines",
    "Air Freight NZ",
    "Kyrgyz Air",
    "CommutAir",
    "Lynx Aviation",
    "Emirates",
    "Airshop B.V.",
    "Aerovías DAP",
    "Air Alsie",
    "Aeroflot",
    "FITS Aviation (Pvt) Ltd",
    "Air Arabia",
    "Bahrain Air",
    "Srilankan Airlines",
    "Flyadeal",
    "Vueling",
    "DOT LT",
    "Silk Way Airlines",
    "Avianca Ecuador",
    "Czech Airlines",
    "Pacific Wings",
    "Air Georgian Ltd. dba Air Alliance",
    "Tropic Air Limited",
    "Air East",
    "Avianca Brazil",
    "Viva Air Colombia",
    "LAN Express",
    "Federal Air",
    "China West Air",
    "Viva Air",
    "Atlantic Airways",
    "Calm Air International",
    "French Armed Forces",
    "Titan Airways Limited",
    "Air Nostrum",
    "SeaPort Airlines",
    "IrAero",
    "Oriental Air Bridge",
    "Abacus International Pte. Ltd.",
    "Aigle Azur",
    "SunExpress Deutschland",
    "Volga-Dnepr Airlines",
    "Air Rarotonga",
    "Air Do",
    "Aerolíneas Mas",
    "Cobham Aviation Services Australia",
    "Sutra Inc.",
    "Atlantis European Airways",
    "Siam Air",
    "Safair",
    "Silkair",
    "ITA Software Inc.",
    "Business Air Co Ltd",
    "Connellan air disaster",
    "Air Mediterranee",
    "Azimut",
    "Travelsky Technology Limited",
    "DHL Air Limited",
    "Private Wings",
    "Tyrolean Airways",
    "Corendon Airlines",
    "Lodyssey",
    "Fly Branson Travel dba Branson AirExpress",
    "Myanmar National Airlines",
    "Air Iceland",
    "Air Choice One",
    "Skywings Asia Airlines Co., Ltd.",
    "La Compagnie",
    "Pan American World Airways",
    "Air Moldova",
    "Freebird Airlines",
    "Dniproavia",
    "Bahamasair",
    "Condor",
    "Zagros Air Co.",
    "Starbow",
    "Air Timor",
    "Discovery Airways",
    "China Southern Airlines",
    "Aerolíneas Sosa",
    "Major Airline",
    "NOVA Airlines",
    "Thomson Airways",
    "Radixx Solutions International, Inc.",
    "Jazeera Airways",
    "Travel Service Polska Sp. z.o.o.",
    "CanJet",
    "Perimeter Aviation Ltd.",
    "PT Aerosystems Indonesia",
    "Air Macau",
    "AIR CAIRO",
    "Sky Regional Airlines",
    "Air Arabia Maroc",
    "Air Caraibes",
    "Aero VIP",
    "Syphax Airlines",
    "AHK Air Hong Kong Limited",
    "Island Air",
    "Jordan Aviation",
    "Virgin Australia",
    "Iliamna Air Taxi Inc.",
    "Sun Express",
    "JSC \"Sirena-Travel\"",
    "Trans Air Congo",
    "Komiaviatrans",
    "Air Algerie",
    "Bangkok Airways",
    "Air Astana",
    "Alpine Aviation Inc.",
    "Copa Airlines",
    "Laudamotion",
    "PT. My Indo Airlines",
    "Tassili Airlines",
    "Aero Contractors",
    "Executive Express Aviation LLC dbaSouthern Airways",
    "UVT Aero",
    "Merpati Nusantara Airlines",
    "LASER Airlines",
    "Twin Jet",
    "Libyan Airlines",
    "Severstal Air",
    "Berjaya Air",
    "BRA",
    "First Air",
    "Condor",
    "ALS Ltd.",
    "FedEx",
    "Far Eastern Air Transport",
    "Georgian Airways",
    "InterCaribbean Airways",
    "Major Airline",
    "Tiara Air Aruba",
    "Westair Aviation",
    "Skyway Costa Rica",
    "DHL Aero Expreso S.A.",
    "TAAG Angola Airlines",
    "Thalys International",
    "Safi Airways",
    "Amapola Flyg AB",
    "Nakina Air Service",
    "Allegiant Air",
    "Jet Lite",
    "Loong Air",
    "Up Israel",
    "Rossiya Airlines",
    "KrasAvia",
    "FlyCorporate",
    "Surinam Airways",
    "Virgin Atlantic",
    "Donavia",
    "TNT Airways",
    "Helijet",
    "Iran Air",
    "Thai Express Air Co. Ltd",
    "Global Aviation Services Group",
    "Thomas Cook Airlines Scandinavia",
    "Firefly",
    "Nok Air",
    "El Al Israel Airlines",
    "Armenia Airways",
    "ANA Wings",
    "UPS",
    "Hahn Air",
    "Special Ground Handling Service -XH",
    "Avia Traffic Company",
    "Yakutia Airlines",
    "Air Mekong",
    "PM Air LLC",
    "Air Transat",
    "Tibet Airlines",
    "Cubana de Aviación",
    "Aurigny Air Services",
    "Sqiva Sistem",
    "Westjet",
    "Jetairfly",
    "Nesma Airlines",
    "Passaredo Linhas Aereas",
    "Travel Service Slovensko",
    "Kartika Airlines",
    "Uzbekistan Airways",
    "Anguilla Air Services, Ltd",
    "Israir Airlines",
    "Orenair",
    "Wings Air",
    "Shaheen Air",
    "IATA - Clearing HouseInternational Air Transport Association",
    "Flybe",
    "Japan Air Commuter",
    "Eagle Atlantic Airlines",
    "Tajik Air",
    "All Nippon Airways",
    "Wright Air Service",
    "JSC Transport Automated InformationSystems - TAIS",
    "Air Austral",
    "JETGO Australia",
    "Go!",
    "Topas Co. Ltd.",
    "TACA Airlines",
    "Zambezi Airlines",
    "Belle Air",
    "Monacair",
    "Chongqing Airlines",
    "TAME Linea Aerea del Ecuador",
    "Avianca Costa Rica",
    "SkyWork Airlines",
    "Passaredo Transportes Aereos S.A.",
    "Avianca",
    "Jiangxi Air",
    "Air Côte d'Ivoire",
    "AccesRail",
    "FlexFlight",
    "Transavia",
    "Adria Airways",
    "Etihad Airways",
    "Ellinair",
    "Golden Myanmar Airlines Public Co., Ltd",
    "Lufthansa",
    "Yemenia",
    "FlyBosnia",
    "Mann Yadanarpon Airlines",
    "Sol Lineas Aereas",
    "Winair",
    "Indonesia AirAsia",
    "ASL Airlines France",
    "Orbest",
    "Mauritania Airlines International",
    "Bird Information Systems Private Limited",
    "Kyrgyz Trans Avia",
    "Asian Wings Airways Limited",
    "Buraq Air Transport (BRQ)",
    "Tatarstan Airlines",
    "Bemidji Airlines",
    "Renegade Air",
    "Nas Air",
    "Air Sunshine Inc.",
    "Aerolitoral S.A. de C.V.",
    "Avia Traffic Company",
    "Lao Skyway",
    "China Airlines",
    "Hainan Airlines",
    "Jin Air",
    "Premier Trans Aire Inc.",
    "Amadeus IT Group SA",
    "TIK Systems",
    "Africa World Airlines",
    "Onur Air",
    "Malta Air",
    "Conquest Air, Inc.",
    "EuroAtlantic Airways S.A.",
    "Norwegian Air International",
    "Hong Kong Airlines",
    "Air City",
    "Aklak Air",
    "Southern Sky",
    "Eurostar",
    "Austral Lineas Aereas",
    "Angara Airlines",
    "Royal Air Maroc",
    "Sharp Airlines",
    "Aeronautical Telecommunications Ltd.(AEROTEL)",
    "TUI fly",
    "Regent Airways",
    "Turkish Airlines",
    "Seaborne Airlines",
    "Air Manas",
    "Air Niugini",
    "Evelop Airlines",
    "AirAsia",
    "Avianca Cargo",
    "Hex Air",
    "Aero-Charter Ukraine",
    "Helvetic Airways",
    "Aviacon Zitotrans Air Company JSC",
    "Welcome Air",
    "ACT Havayollari A.S.",
    "World Ticket Ltd",
    "Tigerair Taiwan",
    "One Jet, Inc.",
    "SITA - Airlines WorldwideTelecommunications and Information Svcs",
    "VietjetAir",
    "GetJet",
    "Gambia International Airlines",
    "Sylt Air GmbH",
    "Ural Airlines",
    "Malaysia Airlines",
    "Air Panama",
    "Tunisair Express",
    "Maluti Sky",
    "Royal Brunei",
    "Regional Air Services",
    "EasyJet",
    "Skypower Express Airways",
    "Buta Airways",
    "Horizon Air",
    "40-Mile Air",
    "Royal Jordanian",
    "Transaero Airlines",
    "Lion Air",
    "North Flying",
    "Northwest",
    "Quikjet Cargo Airlines Pvt. Ltd",
    "Premium Jet AG",
    "Ryan Air Service",
    "Ak Bars Aero",
    "Uzbekistan Airways Express",
    "Servicios Aéreos de los Andes",
    "Chu Kong Passenger Transport Co. Ltd.",
    "Mexicana de Aviación",
    "St Barth Commuter",
    "CM Airlines",
    "Mokulele Airlines",
    "Ethiopian Airlines",
    "Martinair",
    "Trans-Mediterranean Airways",
    "Deutsche Bahn AG",
    "ExpressJet",
    "Alliance Air",
    "SATA Air Acores",
    "Continental Micronesia, Inc.",
    "Sabre Pacific",
    "Maya Island Air",
    "Aerocaribbean",
    "Vuelos Economicos Centroamericanos",
    "Wizz Air Ukraine",
    "Southern Air",
    "Karinou Airlines",
    "AirExplore",
    "Antrak Air",
    "Aerolink Uganda Limited",
    "Kinda Airlines",
    "Thai Vietjet Air",
    "Sun Air Express",
    "Monarch Airlines",
    "Videcom International Limited",
    "Boliviana de Aviación",
    "Air Tahiti",
    "Wings of Lebanon S.a.l",
    "Bassaka Air Limited",
    "Skippers Aviation",
    "Cargojet Airways Ltd.",
    "WOW Air ehf",
    "Japan Transocean Air",
    "TUI Airlines Netherlands",
    "Hahn Air",
    "Air Namibia",
    "Eurowings",
    "Transasia Airways",
    "ALROSA",
    "Edelweiss Air",
    "Amaszonas",
    "Trade Air",
    "LC Busre SAC",
    "MHS Aviation",
    "airBaltic",
    "Volotea",
    "Jet Express",
    "Delta Air Lines",
    "Air Transport Association of Americad\\b\\a Airlines for America",
    "Taquan Air",
    "Afghan Jet International",
    "Jet Ops",
    "Azur Air",
    "T'way Air",
    "Air Malta",
    "Jazz",
    "Mandarin Airlines",
    "Norwegian Air",
    "PT Kal Star Aviation",
    "Portugália",
    "American Eagle",
    "Villa Air Pvt. Ltd. dba Villa Air",
    "Nippon Cargo Airlines",
    "Nordic Regional Airline",
    "Donghai Airlines",
    "Virgin Australia",
    "Myanmar Airways International",
    "Caribbean Air Export Import Inc.",
    "Air Transport International L.L.C.",
    "Aserca Airlines",
    "Telair International GmbH",
    "Ultimate Jetcharters",
    "Equaflight Service",
    "S.C. Ten Airways S.R.L.",
    "Bulgaria Air",
    "Southwest Airlines",
    "Air Italy",
    "Cebu Pacific",
    "Empire Airlines",
    "East Horizon Airlines",
    "SW Italia s.p.a.",
    "Jetstar Pacific Airlines",
    "Air Koryo",
    "Qazaq Air",
    "Hi Air",
    "Gulf Air",
    "Primera Air",
    "Worldspan",
    "Nile Air",
    "Kenmore Air",
    "HOP!",
    "Tarco Air",
    "Labrador Airways Limited",
    "Air Caledonie",
    "Jet Airways Inc.",
    "VLM Airlines",
    "VIA Rail Canada Inc.",
    "Australian Airlines",
    "Premier Airlines",
    "Air Mauritius",
    "Air Niamey",
    "JetBlue Airways",
    "Austrian Airlines",
    "Boutique Air",
    "Korongo Airlines",
    "Sky Wings Airlines",
    "Yeti Airlines Domestic Pvt. Ltd.",
    "Aer Lingus",
    "Belavia",
    "Redemption Inc.",
    "Cinnamon Air",
    "Colorful Guizhou Airlines",
    "Air Armenia",
    "DHL Aviation EEMEA B.S.C.(c)",
    "Daallo Airlines",
    "Air Cargo Carriers, LLC.",
    "Peruvian Airlines",
    "TAR Aerolíneas",
    "IBS Software Services Americas, Inc.",
    "China Postal Airlines Ltd.",
    "MNG Airlines",
    "Qanot Sharq",
    "Coastal Travels",
    "Bees Airline",
    "Fuji Dream Airlines",
    "Almasria Universal Airlines",
    "Air Busan",
    "Philippine Airlines",
    "Thai AirAsia X",
    "LAN Chile Cargo",
    "Mango",
    "Skytrans Airlines",
    "Alliance Airlines",
    "Galileo International",
    "Asiana Airlines",
    "Farelogix Qatar Airways",
    "Norse Atlantic Airways",
    "Polar Airlines",
    "NordStar",
    "Biman Bangladesh Airlines",
    "Skyward Express",
    "Stobart Air",
    "Cyprus Airways",
    "Santa Barbara Airlines",
    "Travel Service",
    "ASKY Airlines",
    "Nouvelair",
    "Somon Air",
    "Air Liaison",
    "MyWay Airlines",
    "ZanAir",
    "Felix Airways",
    "Binter Canarias",
    "Air Tindi",
    "Air Corsica",
    "Yangtze River Express",
    "Airnorth",
    "Level",
    "Air Inuit",
    "Chautauqua Airlines",
    "Alsa Grupo SLU",
    "Beijing Capital Airlines",
    "Northwest Airlines",
    "CEIBA Intercontinental",
    "Jetlink Express",
    "Kish Airlines",
    "FlyOne",
    "Air Excursion, LLC",
    "Blue Bird Airways",
    "Kan Air",
    "Afric Aviation",
    "Air Indus",
    "Cronos Airlines",
    "Brussels Airlines",
    "Insel Air",
    "United Airlines",
    "Avior Airlines",
    "Okay Airways",
    "Canaryfly",
    "Air New Zealand",
    "Pakistan International Airlines",
    "Oman Air",
    "8165343 Canada Inc. dba Air Canada rouge",
    "Meraj Air",
    "Gazpromavia",
    "People's Viennaline",
    "Electronic Data Systems Corporation",
    "Azerbaijan Airlines",
    "RusLine",
    "Panama Airways",
    "Euro-Asia Air",
    "Danish Air Transport",
    "Airtran Airways",
    "Premier Airlines",
    "Air Kiribati Limited",
    "SmartWings",
    "Air Seychelles",
    "Utair",
    "Croatia Airlines",
    "Jonika Airlines",
    "Lynden Air Cargo, LLC",
    "Calima Aviacion S.L",
    "Druk Air",
    "AirAsia X",
    "Precision Air",
    "Fiji Airways",
    "Lao Airlines",
    "Air Bishkek",
    "South East Asian Airlines (SEAIR)International, Inc.",
    "Royal Flight",
    "Sudan Airways",
    "Luxair",
    "Scoot",
    "V Air Corporation",
    "Air Alps Aviation",
    "JSC Kazaviaspas",
    "South African Airways",
    "Aruba Airlines",
    "Sky Lease I, Inc.",
    "Spirit Airlines",
    "Compass Airlines",
    "Charter Air Transport, Inc.",
    "Asian Air",
    "Caribbean Airlines",
    "Bearskin Airlines",
    "JetHunter",
    "South Airlines",
    "IndiGo",
    "China United Airlines",
    "Atlas Air",
    "Hellas Jet",
    "Middle East Airlines",
    "Stabo Air Limited",
    "NAYSA",
    "Mid Africa Aviation",
    "Aztec Airways",
    "Russian Railways",
    "Emetebe S.A.",
    "Norwegian Air",
    "C.A.I. First",
    "Eastern Airlines, LLC",
    "Vista Georgia",
    "Skyview Airways Company Limiteddba Skyview",
    "Pascan Aviation",
    "Cimber",
    "Provincial Airlines",
    "Alpha Air Transport",
    "Malindo Air",
    "ZIPAIR Tokyo",
    "Tailwind Airlines",
    "Cityjet",
    "Transavia Denmark",
    "Kuwait Airways",
    "Islena de Inversiones S.A. de C.V.dba Islena Airlines",
    "Motor Sich Airlines",
    "Iberia Express",
    "Tunisair",
    "SalamAir",
    "AnadoluJet",
    "Pegas Fly",
    "Solaseed Air",
    "Penair",
    "Eritrean Airlines",
    "Zacarias Moreno",
    "Cambodia Angkor Air",
    "Sky Airlines",
    "Air Flamenco",
    "Amaszonas",
    "Icelandair",
    "Warbelow's Air Ventures",
    "Endeavor Air",
    "Air Incheon",
    "Kharkiv Airlines",
    "Itek Air",
    "Qingdao Airlines",
    "SATA",
    "Airbus Transport International",
    "Azul Brazilian Airlines",
    "XL Airways France",
    "Aviateca",
    "Cobalt Air",
    "Armenia Aircompany",
    "EcoJet",
    "Qeshm Air",
    "RwandAir",
    "Aurora",
    "Virgin America ",
    "Alidaunia",
    "ABX Air, Inc.",
    "Airkenya Express",
    "Wizz Air",
    "Thai Smile",
    "AVANZA",
    "Uganda Airlines",
    "Cargolux",
    "Nolinor Aviation",
    "B&H Airlines",
    "Eastar Jet",
    "Jet Aviation Business",
    "Shuttle America",
    "Globus LLС",
    "Aeromar",
    "Air Tanzania",
    "Neos",
    "Cathay Pacific",
    "Bul Air",
    "Halcyonair",
    "Asia Atlantic Airlines",
    "Delta Connection",
    "Tigerair Mandala",
    "Eastern Airways",
    "Aero-Tropics Air Services",
    "Malawian Airlines",
    "Interjet",
    "Southern Air Inc.",
    "Novoair",
    "Hinterland Aviation",
    "Vieques Air Link",
    "Finnair",
    "TUIfly Nordic",
    "Amtrak",
    "Red Wings Airlines",
    "AirAsia Japan",
    "Liat",
    "Mercury Air Cargo, Inc.",
    "Exec Air, Inc. of Naples",
    "K-Mile Air Co. Ltd",
    "Rotana Jet",
    "Sunwing Airlines",
    "Loganair",
    "SCAT",
    "Envoy Air",
    "Ryanair",
    "Porter Airlines",
    "EgyptAir",
    "Vladivostok Air",
    "Aero Transporte S.A.",
    "Tigerair Australia",
    "Hawaiian Airlines",
    "Aero Nomad Airlines",
    "Singapore Airlines",
    "Urumqi Air",
    "Air Arabia Egypt",
    "Blue1",
    "OAG",
    "9 Air",
    "fastjet",
    "Airmax S.A.",
    "Windrose Airlines",
    "LAN COLOMBIA AIRLINES",
    "Xiamen Airlines",
    "Dobrolet",
    "Tradewind Aviation",
    "Nextjet",
    "AirAsia India",
    "Aerotranscargo",
    "Orient Thai Airlines",
    "Shirak Avia",
    "BVI Airways",
    "Eva Air",
    "China Cargo Airlines",
    "Zapways, Inc.",
    "Azur Air Ukraine",
    "LOT Polish Airlines",
    "Auric Air Services Limited",
    "Central Mountain Air",
    "Smokey Bay Air, Inc.",
    "Fly CamInter",
    "TAB - Transportes Aéreos Bolivianos",
    "Tayaran Jet",
    "Flydubai",
    "Hebei Airlines",
    "Ningxia Cargo Airlines CO.,LTD",
    "Chang An Airlines"
];
const iata2 = [...iata];
const iata3 = [...iata];
const iata4 = [...iata];
const iata5 = [...iata];
const iataPartial = [...iata].slice(5,15);
const iataPartial2 = [...iata].slice(5,7);
const iataPartial3 = [...iata].slice(5,12);

Test runner

Ready to run.

Testing in
TestOps/sec
isamrish
intersect_isamrish(iata, iata2, iata3, iata4, iata5, iataPartial, iataPartial2, iataPartial3)
ready
blackholesinthesky
intersect_blackholesinthesky(iata, iata2, iata3, iata4, iata5, iataPartial, iataPartial2, iataPartial3)
ready
jeremrx
intersect_jeremrx(iata, iata2, iata3, iata4, iata5, iataPartial, iataPartial2, iataPartial3)
ready
jeremrx reworked
intersect_jeremrx_2(iata, iata2, iata3, iata4, iata5, iataPartial, iataPartial2, iataPartial3)
ready

Revisions

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