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
https://t.me/web_overflow/1302
#todo написати функцію на будь-якій мові програмування, яка приймає масив чисел arr та число N. Функція має повернути масив, кожен елемент якого є підмасивом розміром N. Винятком є останній підмасив, який може мати розмір [1, N]. Порядок усіх чисел має зберігатись.
Наприклад: [1, 2, 3, 4, 5, 6, 7, 8, 9], 3 => [[1, 2, 3], [4, 5, 6], [7, 8, 9]] [1, 2, 3, 4, 5, 6, 7, 8, 9], 2 => [[1, 2], [3, 4], [5, 6], [7, 8], [9]]
const size = 1_000;
const arrayNumbers1K = Array(size).fill(0);
for (let i = 0; i < size; ++i)
arrayNumbers1K[i] = Math.random() * 1000;
Ready to run.
Test | Ops/sec | |
---|---|---|
Kirill |
| ready |
Volodymyr |
| ready |
mc1 |
| ready |
mc2 |
| ready |
mc3 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.