1 | /* global bench */
|
2 |
|
3 | import expand from '..'
|
4 | import fs from 'fs'
|
5 |
|
6 | const resfile = new URL('../test/cases.txt', import.meta.url)
|
7 | const cases = fs.readFileSync(resfile, 'utf8').split('\n')
|
8 |
|
9 | bench('Average', function () {
|
10 | cases.forEach(function (testcase) {
|
11 | expand(testcase)
|
12 | })
|
13 | })
|