import * as Benchmark from 'benchmark' ; import { eqNumber } from 'fp-ts/lib/Eq' ; import * as R from 'ramda' ; import * as FR from '../src/' ; const suite = new Benchmark . Suite ( ) ; suite . add ( 'equals (ramda)' , function ( ) { R . equals ( 10 , 20 ) ; } ) . add ( 'equals (ramda - curried)' , function ( ) { R . equals ( 10 ) ( 20 ) ; } ) . add ( 'equals (fp-ts)' , function ( ) { FR . equals ( eqNumber ) ( 10 , 20 ) ; } ) . add ( 'equals (fp-ts - curried)' , function ( ) { FR . equals ( eqNumber ) ( 10 ) ( 20 ) ; } ) . 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 } ) ;