Files
Mazdak Farrokhzad 50d58a2858 Add modules/benchmarks-ts (#3408)
# Description of Changes

Adds `modules/benchmarks-ts`.

# API and ABI breaking changes

None

# Expected complexity level and risk

2?

# Testing

This is a test.

---------

Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
Co-authored-by: Noa <coolreader18@gmail.com>
2025-10-24 16:34:13 +00:00

22 lines
447 B
TypeScript

export type Load = {
initialLoad: number,
smallTable: number,
numPlayers: number,
bigTable: number,
biggestTable: number,
};
export function newLoad(initialLoad: number): Load {
return {
initialLoad,
smallTable: initialLoad,
numPlayers: initialLoad,
bigTable: initialLoad * 50,
biggestTable: initialLoad * 100,
};
}
export function blackBox(x: any) {
// TODO: actually do something to defeat optimizations?
}