Open History to see the last commit
1export const memoryBenchOptions = {
2 iterations: 1,
3 warmupIterations: 1,
4 time: 0,
5 warmupTime: 0,
6 throws: true,
7}
8β
9export function createDeterministicRandom(seed: number) {
10 let state = seed >>> 0
11β
12 return () => {
13 state = (state * 1664525 + 1013904223) >>> 0
14 return state / 0x100000000
15 }
16}
17β
18export function randomSegment(random: () => number) {
19 return Math.floor(random() * 1_000_000_000).toString(36)
20}