const Benchmark = require('benny')
-const { generateRandomIntegerArray } = require('./benchmark-utils')
+const { generateRandomNumberArray } = require('./benchmark-utils')
-const testArray = generateRandomIntegerArray(10000)
+const testArray = generateRandomNumberArray(10000)
/**
*
Benchmark.add('reduceTernaryMax', () => {
reduceTernaryMax(testArray)
}),
- Benchmark.add('reduceMathMax', () => {
+ Benchmark.add('reduceMath.max', () => {
reduceMathMax(testArray)
}),
Benchmark.add('sortMax', () => {
}),
Benchmark.cycle(),
Benchmark.complete(),
- Benchmark.save({ file: 'max', format: 'chart.html' }),
- Benchmark.save({ file: 'max', format: 'table.html' })
+ Benchmark.save({ file: 'max', format: 'json', details: true }),
+ Benchmark.save({ file: 'max', format: 'chart.html', details: true }),
+ Benchmark.save({ file: 'max', format: 'table.html', details: true })
)