Remove "short params" bench

Performance may be vary, depends on character used in params.
Hence the result is not reliable.
pull/3/head
Amio 2018-07-15 01:47:06 +08:00
rodzic a95392e8e0
commit 35936e1080
2 zmienionych plików z 0 dodań i 3 usunięć

Wyświetl plik

@ -42,7 +42,6 @@ https://badgen.now.sh/
`npm run bench` on my iMac5K(Late 2014), 3.5G i5, with Node.js 10.5.0:
```bash
generate by short params x 1,085,052 ops/sec ±1.03% (83 runs sampled)
generate by long params x 1,046,942 ops/sec ±0.61% (93 runs sampled)
generate by full params x 1,266,881 ops/sec ±0.76% (91 runs sampled)
```

Wyświetl plik

@ -1,12 +1,10 @@
const { Suite } = require('benchmark')
const badgen = require('..')
const shortParams = { subject: '1', status: '2' }
const longParams = { subject: 'build-build-build', status: 'passing-passing-passing' }
const fullParams = { subject: 'license', status: 'MIT', color: 'cyan' }
new Suite()
.add('generate by short params', () => badgen(shortParams))
.add('generate by long params ', () => badgen(longParams))
.add('generate by full params ', () => badgen(fullParams))
.on('cycle', event => console.log(String(event.target)))