Commit graph

5 commits

Author SHA1 Message Date
Sindre Sorhus
409f95eef5 add XO
https://github.com/sindresorhus/xo
2015-08-20 03:05:43 +07:00
Sean McArthur
42918337e5 return a new function for each getter
- defines the getters onto a proto
- the function returned has its __proto__ set to our proto

fixes #32
2014-07-09 10:54:59 -07:00
Sindre Sorhus
3ab833de62 bench - increase iterations for more reliable results 2014-07-04 22:32:23 +02:00
Sindre Sorhus
d255f42a9e bench - minor code style tweaks 2014-07-04 22:29:02 +02:00
Joshua Appelman
3026d71e0e 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
2014-07-04 21:30:02 +02:00