mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-15 04:08:02 -04:00
50d58a2858
# 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>
22 lines
447 B
TypeScript
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?
|
|
}
|