@@ -39,7 +39,7 @@ Please consider following this project's author, [Jon Schlinkert](https://github
39
39
- [ Bash expansion libs] ( #bash-expansion-libs )
40
40
- [ Benchmarks] ( #benchmarks )
41
41
* [ Running benchmarks] ( #running-benchmarks )
42
- * [ Latest results ] ( #latest-results )
42
+ * [ Nanomatch vs. Minimatch vs. Multimatch ] ( #nanomatch-vs-minimatch-vs-multimatch )
43
43
- [ About] ( #about )
44
44
45
45
</details >
@@ -536,7 +536,7 @@ console.log(nm.makeRe('*.js'));
536
536
// => /^(?:(\.[\\\/])?(?!\.)(?=.)[^\/]*?\.js)$/
537
537
```
538
538
539
- ### [ .create] ( index.js#L662 )
539
+ ### [ .create] ( index.js#L658 )
540
540
541
541
Parses the given glob ` pattern ` and returns an object with the compiled ` output ` and optional source ` map ` .
542
542
@@ -578,7 +578,7 @@ console.log(nm.create('abc/*.js'));
578
578
// idx: 6 }
579
579
```
580
580
581
- ### [ .parse] ( index.js#L701 )
581
+ ### [ .parse] ( index.js#L697 )
582
582
583
583
Parse the given ` str ` with the given ` options ` .
584
584
@@ -611,7 +611,7 @@ console.log(ast);
611
611
// { type: 'eos', val: '' } ] }
612
612
```
613
613
614
- ### [ .compile] ( index.js#L749 )
614
+ ### [ .compile] ( index.js#L745 )
615
615
616
616
Compile the given ` ast ` or string with the given ` options ` .
617
617
@@ -645,7 +645,7 @@ console.log(nm.compile(ast));
645
645
// parsingErrors: [] }
646
646
```
647
647
648
- ### [ .clearCache] ( index.js#L772 )
648
+ ### [ .clearCache] ( index.js#L768 )
649
649
650
650
Clear the regex cache.
651
651
@@ -1004,50 +1004,50 @@ Install dev dependencies:
1004
1004
npm i -d && node benchmark
1005
1005
```
1006
1006
1007
- ### Latest results
1007
+ ### Nanomatch vs. Minimatch vs. Multimatch
1008
1008
1009
1009
``` bash
1010
1010
# 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)
1014
1014
1015
- fastest is nanomatch (by 564 % avg)
1015
+ fastest is nanomatch (by 651 % avg)
1016
1016
1017
1017
# 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)
1021
1021
1022
- fastest is nanomatch (by 1445 % avg)
1022
+ fastest is nanomatch (by 1429 % avg)
1023
1023
1024
1024
# 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)
1028
1028
1029
- fastest is nanomatch (by 212 % avg)
1029
+ fastest is nanomatch (by 260 % avg)
1030
1030
1031
1031
# 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)
1035
1035
1036
- fastest is nanomatch (by 302 % avg)
1036
+ fastest is nanomatch (by 337 % avg)
1037
1037
1038
1038
# 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)
1042
1042
1043
- fastest is nanomatch (by 720 % avg)
1043
+ fastest is nanomatch (by 742 % avg)
1044
1044
1045
1045
# 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)
1049
1049
1050
- fastest is nanomatch (by 351 % avg)
1050
+ fastest is nanomatch (by 357 % avg)
1051
1051
1052
1052
```
1053
1053
@@ -1099,21 +1099,22 @@ You might also be interested in these projects:
1099
1099
1100
1100
| ** Commits** | ** Contributor** |
1101
1101
| --- | --- |
1102
- | 144 | [ jonschlinkert] ( https://github.com/jonschlinkert ) |
1102
+ | 159 | [ jonschlinkert] ( https://github.com/jonschlinkert ) |
1103
1103
| 1 | [ devongovett] ( https://github.com/devongovett ) |
1104
1104
1105
1105
### Author
1106
1106
1107
1107
** Jon Schlinkert**
1108
1108
1109
+ * [ linkedin/in/jonschlinkert] ( https://linkedin.com/in/jonschlinkert )
1109
1110
* [ github/jonschlinkert] ( https://github.com/jonschlinkert )
1110
1111
* [ twitter/jonschlinkert] ( https://twitter.com/jonschlinkert )
1111
1112
1112
1113
### License
1113
1114
1114
- Copyright © 2017 , [ Jon Schlinkert] ( https://github.com/jonschlinkert ) .
1115
+ Copyright © 2018 , [ Jon Schlinkert] ( https://github.com/jonschlinkert ) .
1115
1116
Released under the [ MIT License] ( LICENSE ) .
1116
1117
1117
1118
***
1118
1119
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