Ohmium / benchmarks /route-queue.bench.mjs
tardumo's picture
Publish complete Ohmium source
3fe01be verified
Raw History Blame Contribute Delete
318 Bytes
import { orderSignals } from "./route-queue.mjs";
let metric = 0;
for (let sample = 0; sample < 16; sample += 1) {
const values = Array.from({ length: 256 }, (_, index) => ((index * 1103515245 + sample * 12345) >>> 9) % 1009);
metric += orderSignals(values).operations;
}
console.log(JSON.stringify({ metric }));