<commit_before>/**
 * Created by tushar.mathur on 01/10/16.
 */

import {Suite} from 'benchmark'
import {fromArray_map_reduce} from './bm.fromArray-map-reduce'
import {fromArray_scan_reduce} from './bm.fromArray-scan-reduce'
import {fromArray_takeN} from './bm.fromArray-takeN'
import {onCycle} from './lib'

// Run All Benchmarks

console.log('Node:', process.version)
console.log('V8:  ', process.versions.v8)
console.log('----------------')

const suite = new Suite()
fromArray_map_reduce(suite)
fromArray_scan_reduce(suite)
fromArray_takeN(suite)

suite.on('cycle', onCycle).run()<commit_msg>refactor(benchmarks): display date of the run<commit_after>/**
 * Created by tushar.mathur on 01/10/16.
 */

import {Suite} from 'benchmark'
import {fromArray_map_reduce} from './bm.fromArray-map-reduce'
import {fromArray_scan_reduce} from './bm.fromArray-scan-reduce'
import {fromArray_takeN} from './bm.fromArray-takeN'
import {onCycle} from './lib'
import {tryCatch} from './bm.tryCatch'

// Run All Benchmarks

console.log('Node:', process.version)
console.log('V8:  ', process.versions.v8)
console.log('Date:', new Date())
console.log('----------------')

const suite = new Suite()
fromArray_map_reduce(suite)
fromArray_scan_reduce(suite)
fromArray_takeN(suite)
tryCatch(suite)
suite.on('cycle', onCycle).run()

{'fraction_non_alphanumeric': 0.17911585365853658, 'fraction_numerical': 0.012195121951219513, 'mean_word_length': 4.861607142857143, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7440340', 'n_tokens_mistral': 466, 'n_tokens_neox': 455, 'n_words': 98}