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
Compare Chosen, Select2, selectBox, and DropKick for lists with large number of items
<link href="//raw.github.com/harvesthq/chosen/master/chosen/chosen.css" rel="stylesheet"/>
<link href="//raw.github.com/ivaynberg/select2/master/select2.css" rel="stylesheet"/>
<link href="//raw.github.com/JamieLottering/DropKick/master/dropkick.css"
rel="stylesheet"/>
<link href="//raw.github.com/claviska/jquery-selectBox/master/jquery.selectBox.css" rel="stylesheet"/>
<div id="container"></div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="//raw.github.com/harvesthq/chosen/master/chosen/chosen.jquery.min.js"></script>
<script src="//raw.github.com/ivaynberg/select2/master/select2.js"></script>
<script src="//raw.github.com/JamieLottering/DropKick/master/jquery.dropkick-1.0.0.js"></script>
<script src="//raw.github.com/claviska/jquery-selectBox/master/jquery.selectBox.min.js"></script>
select = $('<select></select>').appendTo("#container");
var i, length = 50;
for (i = 0; i < length; i++) {
select.append('<option value="' + i + '">' + i + '</option>');
}
select.remove();
$("#container").empty();
Ready to run.
Test | Ops/sec | |
---|---|---|
Chosen |
| ready |
Select2 |
| ready |
DropKick |
| ready |
selectBox |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.