Skip to content

Commit cce7c04

Browse files
committed
run benchmarks, build readme
1 parent 7ae2758 commit cce7c04

File tree

4 files changed

+1885
-1922
lines changed

4 files changed

+1885
-1922
lines changed

.verb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ Install dev dependencies:
494494
npm i -d && node benchmark
495495
```
496496

497-
### Latest results
497+
### Nanomatch vs. Minimatch vs. Multimatch
498498

499499
```bash
500500
{%= include("benchmark/stats.md") %}

README.md

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Please consider following this project's author, [Jon Schlinkert](https://github
3939
- [Bash expansion libs](#bash-expansion-libs)
4040
- [Benchmarks](#benchmarks)
4141
* [Running benchmarks](#running-benchmarks)
42-
* [Latest results](#latest-results)
42+
* [Nanomatch vs. Minimatch vs. Multimatch](#nanomatch-vs-minimatch-vs-multimatch)
4343
- [About](#about)
4444

4545
</details>
@@ -536,7 +536,7 @@ console.log(nm.makeRe('*.js'));
536536
//=> /^(?:(\.[\\\/])?(?!\.)(?=.)[^\/]*?\.js)$/
537537
```
538538

539-
### [.create](index.js#L662)
539+
### [.create](index.js#L658)
540540

541541
Parses the given glob `pattern` and returns an object with the compiled `output` and optional source `map`.
542542

@@ -578,7 +578,7 @@ console.log(nm.create('abc/*.js'));
578578
// idx: 6 }
579579
```
580580

581-
### [.parse](index.js#L701)
581+
### [.parse](index.js#L697)
582582

583583
Parse the given `str` with the given `options`.
584584

@@ -611,7 +611,7 @@ console.log(ast);
611611
// { type: 'eos', val: '' } ] }
612612
```
613613

614-
### [.compile](index.js#L749)
614+
### [.compile](index.js#L745)
615615

616616
Compile the given `ast` or string with the given `options`.
617617

@@ -645,7 +645,7 @@ console.log(nm.compile(ast));
645645
// parsingErrors: [] }
646646
```
647647

648-
### [.clearCache](index.js#L772)
648+
### [.clearCache](index.js#L768)
649649

650650
Clear the regex cache.
651651

@@ -1004,50 +1004,50 @@ Install dev dependencies:
10041004
npm i -d && node benchmark
10051005
```
10061006

1007-
### Latest results
1007+
### Nanomatch vs. Minimatch vs. Multimatch
10081008

10091009
```bash
10101010
# globstar-basic (182 bytes)
1011-
minimatch x 70,508 ops/sec ±0.44% (92 runs sampled)
1012-
multimatch x 63,220 ops/sec ±0.76% (94 runs sampled)
1013-
nanomatch x 377,146 ops/sec ±0.45% (89 runs sampled)
1011+
minimatch x 69,512 ops/sec ±1.92% (88 runs sampled)
1012+
multimatch x 63,376 ops/sec ±1.41% (89 runs sampled)
1013+
nanomatch x 432,451 ops/sec ±0.92% (88 runs sampled)
10141014

1015-
fastest is nanomatch (by 564% avg)
1015+
fastest is nanomatch (by 651% avg)
10161016

10171017
# large-list-globstar (485686 bytes)
1018-
minimatch x 35.67 ops/sec ±0.47% (61 runs sampled)
1019-
multimatch x 34.80 ops/sec ±1.77% (60 runs sampled)
1020-
nanomatch x 509 ops/sec ±0.43% (90 runs sampled)
1018+
minimatch x 34.02 ops/sec ±1.42% (59 runs sampled)
1019+
multimatch x 33.58 ops/sec ±1.97% (58 runs sampled)
1020+
nanomatch x 483 ops/sec ±1.06% (86 runs sampled)
10211021

1022-
fastest is nanomatch (by 1445% avg)
1022+
fastest is nanomatch (by 1429% avg)
10231023

10241024
# long-list-globstar (194085 bytes)
1025-
minimatch x 397 ops/sec ±0.96% (89 runs sampled)
1026-
multimatch x 400 ops/sec ±0.32% (90 runs sampled)
1027-
nanomatch x 843 ops/sec ±0.40% (92 runs sampled)
1025+
minimatch x 383 ops/sec ±0.74% (90 runs sampled)
1026+
multimatch x 378 ops/sec ±0.59% (89 runs sampled)
1027+
nanomatch x 990 ops/sec ±1.14% (85 runs sampled)
10281028

1029-
fastest is nanomatch (by 212% avg)
1029+
fastest is nanomatch (by 260% avg)
10301030

10311031
# negation-basic (132 bytes)
1032-
minimatch x 224,342 ops/sec ±1.07% (90 runs sampled)
1033-
multimatch x 68,071 ops/sec ±0.80% (89 runs sampled)
1034-
nanomatch x 442,204 ops/sec ±1.09% (91 runs sampled)
1032+
minimatch x 242,145 ops/sec ±1.17% (89 runs sampled)
1033+
multimatch x 76,403 ops/sec ±0.78% (92 runs sampled)
1034+
nanomatch x 537,253 ops/sec ±1.44% (86 runs sampled)
10351035

1036-
fastest is nanomatch (by 302% avg)
1036+
fastest is nanomatch (by 337% avg)
10371037

10381038
# not-glob-basic (93 bytes)
1039-
minimatch x 222,156 ops/sec ±0.98% (89 runs sampled)
1040-
multimatch x 179,724 ops/sec ±1.04% (91 runs sampled)
1041-
nanomatch x 1,446,098 ops/sec ±0.45% (92 runs sampled)
1039+
minimatch x 252,402 ops/sec ±1.33% (89 runs sampled)
1040+
multimatch x 209,954 ops/sec ±1.30% (90 runs sampled)
1041+
nanomatch x 1,716,468 ops/sec ±1.13% (86 runs sampled)
10421042

1043-
fastest is nanomatch (by 720% avg)
1043+
fastest is nanomatch (by 742% avg)
10441044

10451045
# star-basic (93 bytes)
1046-
minimatch x 165,049 ops/sec ±1.22% (91 runs sampled)
1047-
multimatch x 132,553 ops/sec ±0.57% (90 runs sampled)
1048-
nanomatch x 522,080 ops/sec ±1.20% (92 runs sampled)
1046+
minimatch x 182,780 ops/sec ±1.41% (91 runs sampled)
1047+
multimatch x 153,210 ops/sec ±0.72% (89 runs sampled)
1048+
nanomatch x 599,621 ops/sec ±1.22% (90 runs sampled)
10491049

1050-
fastest is nanomatch (by 351% avg)
1050+
fastest is nanomatch (by 357% avg)
10511051

10521052
```
10531053

@@ -1099,21 +1099,22 @@ You might also be interested in these projects:
10991099

11001100
| **Commits** | **Contributor** |
11011101
| --- | --- |
1102-
| 144 | [jonschlinkert](https://github.com/jonschlinkert) |
1102+
| 159 | [jonschlinkert](https://github.com/jonschlinkert) |
11031103
| 1 | [devongovett](https://github.com/devongovett) |
11041104

11051105
### Author
11061106

11071107
**Jon Schlinkert**
11081108

1109+
* [linkedin/in/jonschlinkert](https://linkedin.com/in/jonschlinkert)
11091110
* [github/jonschlinkert](https://github.com/jonschlinkert)
11101111
* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)
11111112

11121113
### License
11131114

1114-
Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
1115+
Copyright © 2018, [Jon Schlinkert](https://github.com/jonschlinkert).
11151116
Released under the [MIT License](LICENSE).
11161117

11171118
***
11181119

1119-
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on October 20, 2017._
1120+
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on February 18, 2018._

0 commit comments

Comments
 (0)