Download benchmarks/route-queue.bench.mjs from tardumo/Ohmium: direct link, hf CLI and curl.
- Browser
- Download file 318 Bytes
-
https://huggingface.co/tardumo/Ohmium/resolve/main/benchmarks/route-queue.bench.mjs
- Command line
-
hf download hf://tardumo/Ohmium/benchmarks/route-queue.bench.mjs
-
curl -L -o route-queue.bench.mjs https://huggingface.co/tardumo/Ohmium/resolve/main/benchmarks/route-queue.bench.mjs
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 })); | |