import * as Benchmark from 'benchmark' ; import * as F from '../src/' ; import * as R from 'ramda' ; const suite = new Benchmark . Suite ( ) ; suite . add ( 'xprod (ramda)' , function ( ) { R . xprod ( [ 1 , 2 , 3 ] , [ 'a, b' ] ) ; } ) . add ( 'xprod (fp-ts)' , function ( ) { F . xprod ( [ 1 , 2 , 3 ] , [ 'a, b' ] ) ; } ) . on ( 'cycle' , function ( event ) { console . log ( String ( event . target ) ) ; } ) . on ( 'complete' , function ( this ) { console . log ( 'Fastest is ' + this . filter ( 'fastest' ) . map ( 'name' ) ) ; } ) . run ( { async : true } ) ;