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
const text = `
/*
* Copyright (c) 2020 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/matrix-transform.h>
/ {
keymap {
compatible = "zmk,keymap";
label = "keymap";
default_layer {
label = "base";
// -------------------
// | 7 | 8 | 9 |
// | 4 | 5 | 6 |
// | 1 | 2 | 3 |
// | MO(1) | 0 | . |
// ----------------------
bindings = <
&kp N7 &kp N8 &kp N9
&kp N4 &kp N5 &kp N6
&kp N1 &kp N2 &kp N3
&mo 1 &kp N0 &kp DOT
>;
};
nav_layer {
// -----------------------
// | BTNXT | HOME | PGUP |
// | BTPRV | END | PGDN |
// | BTCLR | _ | _ |
// | _ | _ | RET |
// -----------------------
bindings = <
&bt BT_NXT &kp HOME &kp PG_UP
&bt BT_PRV &kp END &kp PG_DN
&bt BT_CLR &trans &trans
&trans &trans &kp RET
>; label = "nav";
};
}; label = "test";
};
`;
Ready to run.
Test | Ops/sec | |
---|---|---|
indexOf |
| ready |
map filter |
| ready |
map filter 2 |
| ready |
foreach |
| ready |
for loop |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.