-
Notifications
You must be signed in to change notification settings - Fork 3
/
run.ts
31 lines (28 loc) · 962 Bytes
/
run.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* Created by tushar.mathur on 01/10/16.
*/
import {Suite} from 'benchmark'
import {bm_fromArray_combine} from './bm.combine'
import {bm_create} from './bm.create'
import {bm_debounce} from './bm.debounce'
import {bm_fromArray_map_reduce} from './bm.fromArray-map-reduce'
import {bm_fromArray_scan_reduce} from './bm.fromArray-scan-reduce'
import {bm_fromArray_takeN} from './bm.fromArray-takeN'
import {bm_mergeMap} from './bm.mergeMap'
import {bm_switch} from './bm.switch'
import {bm_tryCatch} from './bm.tryCatch'
import {onCycle, onEnd} from './lib'
// Run All Benchmarks
console.log('**Node:**', process.version)
console.log('**V8:** ', process.versions.v8)
const suite = new Suite()
bm_create(suite)
bm_debounce(suite)
bm_fromArray_combine(suite)
bm_fromArray_map_reduce(suite)
bm_fromArray_scan_reduce(suite)
bm_fromArray_takeN(suite)
bm_switch(suite)
bm_tryCatch(suite)
bm_mergeMap(suite)
suite.on('cycle', onCycle).on('complete', onEnd).run()