forked from orbit-oss/chalk
Adds benchmarking using matcha.
Run through:
```shell
./node_modules/matcha/bin/matcha benchmark.js
```
Results against current HEAD:
```shell
1,863,195 op/s » add colour
2,215,812 op/s » add several styles
323,213 op/s » add nested styles
```
Results against the latest revision before optiziations, e122899
```shell
26,714 op/s » add colour
26,752 op/s » add several styles
13,414 op/s » add nested styles
```
Closes #21
This commit is contained in:
parent
e12289964d
commit
3026d71e0e
2 changed files with 21 additions and 0 deletions
|
|
@ -46,6 +46,7 @@
|
|||
"supports-color": "^0.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"matcha": "^0.5.0",
|
||||
"mocha": "*"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue