import * as QueryBench from '../../../../test/QueryBench.js' const fixtures = { 4217: { number: 34_335_551, timestamp: 1_786_485_830 }, 42431: { number: 30_469_074, timestamp: 1_786_485_831 }, } as const QueryBench.bench({ name: 'getBlocks', path: '/v1/blocks' }) QueryBench.bench({ name: 'getBlock', path: { 4217: `/v1/blocks/${fixtures[4217].number}`, 42431: `/v1/blocks/${fixtures[42431].number}`, }, }) QueryBench.bench({ chainId: false, name: 'getBlockByTimestamp', path: { 4217: `/chains/4217/blocks/by-timestamp?closest=before×tamp=${fixtures[4217].timestamp}`, 42431: `/chains/42431/blocks/by-timestamp?closest=before×tamp=${fixtures[42431].timestamp}`, }, }) QueryBench.bench({ chainId: false, name: 'getBlockByTimestamp?closest=after', path: { 4217: `/chains/4217/blocks/by-timestamp?closest=after×tamp=${fixtures[4217].timestamp}`, 42431: `/chains/42431/blocks/by-timestamp?closest=after×tamp=${fixtures[42431].timestamp}`, }, })