//! bench() import BinaryTree from "./helpers/BinaryTree.ts"; import randish from "./helpers/randish.ts"; import Range from "./helpers/Range.ts"; export default function main() { let tree = new BinaryTree(); for (const rand of Range.from(randish()).limit(5_000)) { tree.insert(Math.floor(4_000 * rand)); } return [...tree]; }