mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-12 23:18:03 -05:00
18 lines
353 B
TypeScript
18 lines
353 B
TypeScript
//! bench()
|
|
|
|
import quickSort from "./helpers/quickSort.ts";
|
|
import randish from "./helpers/randish.ts";
|
|
import Range from "./helpers/Range.ts";
|
|
|
|
export default function main() {
|
|
let nums = [
|
|
...Range.from(randish())
|
|
.map((x) => Math.floor(8_000 * x))
|
|
.limit(10_000),
|
|
];
|
|
|
|
nums = quickSort(nums, (a, b) => a - b);
|
|
|
|
return nums;
|
|
}
|