1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-29 18:09:49 +02:00

add benchmarks, update benchmark reporting

This commit is contained in:
Ian Storm Taylor
2017-10-26 14:46:34 -07:00
parent e0978a31e9
commit 34c528b156
13 changed files with 194 additions and 23 deletions

View File

@@ -12,8 +12,8 @@ const categories = fs.readdirSync(categoryDir).filter(c => c[0] != '.' && c != '
categories.forEach((category) => {
suite(category, () => {
set('iterations', 100)
set('mintime', 2000)
set('iterations', 50)
set('mintime', 1000)
const benchmarkDir = resolve(categoryDir, category)
const benchmarks = fs.readdirSync(benchmarkDir).filter(b => b[0] != '.' && !!~b.indexOf('.js')).map(b => basename(b, extname(b)))