import BencheeSuite from './BencheeSuite' ; param passedOptions returns export const createSuite = ( passedOptions ? ) : BencheeSuite => new BencheeSuite ( passedOptions ) ; param name param fn export const benchmark = ( name , fn ) : Promise < Benchee . Result > => createSuite ( ) . add ( name , fn ) . run ( ) . then ( ( results ) => results . ungrouped [ 0 ] ) ;