import { start } from "./timer" ; import { Treasure , Hero , Monster } from "./fixtures/fixture-models" ; import { createTreasure , createHeros , createMonsters } from "./fixtures/fixture-data" ; param count export function smallScenario ( count ) { const data = createTreasure ( count ) ; const time = start ( ) ; const converted = data . map ( ( d ) => Treasure . create ( d ) ) ; const elapsed = time ( ) ; const sanity = converted . length === count ; return { count , elapsed , sanity } ; } param count export function mediumScenario ( count ) { const data = createHeros ( count ) ; const time = start ( ) ; const converted = data . map ( ( d ) => Hero . create ( d ) ) ; const elapsed = time ( ) ; const sanity = converted . length === count ; return { count , elapsed , sanity } ; } param count param smallChildren param mediumChildren export function largeScenario ( count , smallChildren , mediumChildren ) { const data = createMonsters ( count , smallChildren , mediumChildren ) ; const time = start ( ) ; const converted = data . map ( ( d ) => Monster . create ( d ) ) ; const elapsed = time ( ) ; const sanity = converted . length === count ; return { count , elapsed , sanity } ; }