Skip to content

Instantly share code, notes, and snippets.

View midudev's full-sized avatar
👾
Streaming! https://twitch.tv/midudev

Miguel Ángel Durán midudev

👾
Streaming! https://twitch.tv/midudev
View GitHub Profile
@midudev
midudev / bench.js
Created February 2, 2023 21:34
bench
const { beginBench } = require('@agarimo/bench')
const bench = beginBench({
duration: 1000,
transactionsPerRun: 1000
})
bench.add('forEach', () => {
const array = Array.from({ length: 1000 }).map((x, i) => i)