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
<style type="text/css">
button.hide + button {
display:none;
}
button.hide {
border-top-right-radius: .25rem!important;
border-bottom-right-radius: .25rem!important;
}
</style>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.bundle.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js"></script>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" rel="stylesheet"/>
<div class="input-group col-md-6">
<input type="text" class="form-control" placeholder="Recipient's username" aria-label="Recipient's username" aria-describedby="basic-addon2">
<div class="input-group-append">
<button id="btn1" class="btn btn-outline-secondary" type="button">Button 1</button>
<button id="btn2" class="btn btn-outline-secondary" type="button">Button 2</button>
</div>
</div>
var btn = $("#btn2"), parent = btn.parent()
Ready to run.
Test | Ops/sec | |
---|---|---|
Detach Attach |
| ready |
Hide Show |
| ready |
CSS |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.