JSFiddle - React, Tailwind, and code Playground

by marifrahman

HTML

<select id="selct_1"></select><select id="selct_2">
   </select><select id="selct_3"></select><select id="selct_4"></select>

JavaScript

var start = new Date().getTime();

var optList = [];
for (i = 0; i < 5000; i++) {
        optList.push("<option value ='" + i + "' >Options - " + i + "</option>");
    }
var opt = optList.join("")
$("selct_1").update(opt);
$("selct_2").update(opt);
$("selct_3").update(opt);
$("selct_4").update(opt);

var end = new Date().getTime();
var diff = end - start;
alert("Execution time: " + diff+ "Ms");