Skip to content

Instantly share code, notes, and snippets.

@isaacs
Created February 21, 2023 07:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacs/975cbd97e67cea7871abd361031f4951 to your computer and use it in GitHub Desktop.
Save isaacs/975cbd97e67cea7871abd361031f4951 to your computer and use it in GitHub Desktop.
Current in-development benchmarks of node-glob v9, 2023-02-20
--- pattern: './**/0/**/0/**/0/**/0/**/*.txt' ---
~~ sync ~~
node fast-glob sync 0m0.523s 10
node globby sync 0m0.514s 10
node current glob.sync mjs 0m0.570s 10
node current glob syncStream 0m0.584s 10
~~ async ~~
node fast-glob async 0m0.280s 10
node globby async 0m0.292s 10
node current glob async mjs 0m0.324s 10
node current glob stream 0m0.322s 10
--- pattern: './**/[01]/**/[12]/**/[23]/**/[45]/**/*.txt' ---
~~ sync ~~
node fast-glob sync 0m0.503s 160
node globby sync 0m0.528s 160
node current glob.sync mjs 0m0.559s 160
node current glob syncStream 0m0.573s 160
~~ async ~~
node fast-glob async 0m0.284s 160
node globby async 0m0.296s 160
node current glob async mjs 0m0.324s 160
node current glob stream 0m0.323s 160
--- pattern: './**/0/**/0/**/*.txt' ---
~~ sync ~~
node fast-glob sync 0m0.512s 5230
node globby sync 0m0.526s 5230
node current glob.sync mjs 0m0.581s 5230
node current glob syncStream 0m0.589s 5230
~~ async ~~
node fast-glob async 0m0.284s 5230
node globby async 0m0.302s 5230
node current glob async mjs 0m0.318s 5230
node current glob stream 0m0.325s 5230
--- pattern: '**' ---
~~ sync ~~
node fast-glob sync 0m0.577s 200364
node globby sync 0m0.765s 200364
node current glob.sync mjs 0m0.672s 222656
node current glob syncStream 0m0.646s 222656
~~ async ~~
node fast-glob async 0m0.361s 200364
node globby async 0m0.528s 200364
node current glob async mjs 0m0.469s 222656
node current glob stream 0m0.394s 222656
--- pattern: '**/*.txt' ---
~~ sync ~~
node fast-glob sync 0m0.585s 200023
node globby sync 0m0.767s 200023
node current glob.sync mjs 0m0.682s 200023
node current glob syncStream 0m0.650s 200023
~~ async ~~
node fast-glob async 0m0.350s 200023
node globby async 0m0.516s 200023
node current glob async mjs 0m0.456s 200023
node current glob stream 0m0.383s 200023
--- pattern: '{**/*.txt,**/?/**/*.txt,**/?/**/?/**/*.txt,**/?/**/?/**/?/**/*.txt,**/?/**/?/**/?/**/?/**/*.txt}' ---
~~ sync ~~
node fast-glob sync 0m0.588s 200023
node globby sync 0m0.757s 200023
node current glob.sync mjs 0m0.721s 200023
node current glob syncStream 0m0.700s 200023
~~ async ~~
node fast-glob async 0m0.354s 200023
node globby async 0m0.520s 200023
node current glob async mjs 0m0.499s 200023
node current glob stream 0m0.477s 200023
--- pattern: '**/5555/0000/*.txt' ---
~~ sync ~~
node fast-glob sync 0m0.495s 1000
node globby sync 0m0.522s 1000
node current glob.sync mjs 0m0.573s 1000
node current glob syncStream 0m0.584s 1000
~~ async ~~
node fast-glob async 0m0.282s 1000
node globby async 0m0.300s 1000
node current glob async mjs 0m0.303s 1000
node current glob stream 0m0.317s 1000
--- pattern: './**/0/**/../[01]/**/0/../**/0/*.txt' ---
~~ sync ~~
node fast-glob sync 0m0.485s 0
node globby sync 0m0.507s 0
node current glob.sync mjs 0m0.605s 4880
node current glob syncStream 0m0.619s 4880
~~ async ~~
node fast-glob async 0m0.282s 0
node globby async 0m0.298s 0
node current glob async mjs 0m0.354s 4880
node current glob stream 0m0.349s 4880
--- pattern: '**/????/????/????/????/*.txt' ---
~~ sync ~~
node fast-glob sync 0m0.546s 100000
node globby sync 0m0.668s 100000
node current glob.sync mjs 0m0.619s 100000
node current glob syncStream 0m0.607s 100000
~~ async ~~
node fast-glob async 0m0.314s 100000
node globby async 0m0.412s 100000
node current glob async mjs 0m0.396s 100000
node current glob stream 0m0.347s 100000
--- pattern: './{**/?{/**/?{/**/?{/**/?,,,,},,,,},,,,},,,}/**/*.txt' ---
~~ sync ~~
node fast-glob sync 0m0.573s 100000
node globby sync 0m0.668s 100000
node current glob.sync mjs 0m0.723s 200023
node current glob syncStream 0m0.705s 200023
~~ async ~~
node fast-glob async 0m0.345s 100000
node globby async 0m0.416s 100000
node current glob async mjs 0m0.504s 200023
node current glob stream 0m0.452s 200023
--- pattern: '**/!(0|9).txt' ---
~~ sync ~~
node fast-glob sync 0m0.578s 160023
node globby sync 0m0.726s 160023
node current glob.sync mjs 0m0.684s 180023
node current glob syncStream 0m0.642s 180023
~~ async ~~
node fast-glob async 0m0.345s 160023
node globby async 0m0.470s 160023
node current glob async mjs 0m0.428s 180023
node current glob stream 0m0.386s 180023
--- pattern: './{*/**/../{*/**/../{*/**/../{*/**/../{*/**,,,,},,,,},,,,},,,,},,,,}/*.txt' ---
~~ sync ~~
node fast-glob sync 0m0.494s 0
node globby sync 0m0.502s 0
node current glob.sync mjs 0m0.724s 200023
node current glob syncStream 0m0.696s 200023
~~ async ~~
node fast-glob async 0m0.283s 0
node globby async 0m0.298s 0
node current glob async mjs 0m0.476s 200023
node current glob stream 0m0.456s 200023
--- pattern: './*/**/../*/**/../*/**/../*/**/../*/**/../*/**/../*/**/../*/**/*.txt' ---
~~ sync ~~
node fast-glob sync 0m0.484s 0
node globby sync 0m0.509s 0
node current glob.sync mjs 0m0.755s 200023
node current glob syncStream 0m0.735s 200023
~~ async ~~
node fast-glob async 0m0.288s 0
node globby async 0m0.291s 0
node current glob async mjs 0m0.551s 200023
node current glob stream 0m0.499s 200023
--- pattern: './*/**/../*/**/../*/**/../*/**/../*/**/*.txt' ---
~~ sync ~~
node fast-glob sync 0m0.487s 0
node globby sync 0m0.508s 0
node current glob.sync mjs 0m0.738s 200023
node current glob syncStream 0m0.693s 200023
~~ async ~~
node fast-glob async 0m0.284s 0
node globby async 0m0.297s 0
node current glob async mjs 0m0.506s 200023
node current glob stream 0m0.457s 200023
--- pattern: './0/**/../1/**/../2/**/../3/**/../4/**/../5/**/../6/**/../7/**/*.txt' ---
~~ sync ~~
node fast-glob sync 0m0.059s 0
node globby sync 0m0.073s 0
node current glob.sync mjs 0m0.066s 0
node current glob syncStream 0m0.065s 0
~~ async ~~
node fast-glob async 0m0.059s 0
node globby async 0m0.074s 0
node current glob async mjs 0m0.066s 0
node current glob stream 0m0.066s 0
--- pattern: './**/?/**/?/**/?/**/?/**/*.txt' ---
~~ sync ~~
node fast-glob sync 0m0.566s 100000
node globby sync 0m0.647s 100000
node current glob.sync mjs 0m0.650s 100000
node current glob syncStream 0m0.617s 100000
~~ async ~~
node fast-glob async 0m0.332s 100000
node globby async 0m0.410s 100000
node current glob async mjs 0m0.407s 100000
node current glob stream 0m0.412s 100000
--- pattern: '**/*/**/*/**/*/**/*/**' ---
~~ sync ~~
node fast-glob sync 0m0.605s 200113
node globby sync 0m0.783s 200113
node current glob.sync mjs 0m0.729s 222137
node current glob syncStream 0m0.692s 222137
~~ async ~~
node fast-glob async 0m0.360s 200113
node globby async 0m0.518s 200113
node current glob async mjs 0m0.515s 222137
node current glob stream 0m0.459s 222137
--- pattern: './**/*/**/*/**/*/**/*/**/*.txt' ---
~~ sync ~~
node fast-glob sync 0m0.612s 200000
node globby sync 0m0.787s 200000
node current glob.sync mjs 0m0.723s 200000
node current glob syncStream 0m0.692s 200000
~~ async ~~
node fast-glob async 0m0.365s 200000
node globby async 0m0.529s 200000
node current glob async mjs 0m0.503s 200000
node current glob stream 0m0.484s 200000
--- pattern: '**/*.txt' ---
~~ sync ~~
node fast-glob sync 0m0.584s 200023
node globby sync 0m0.767s 200023
node current glob.sync mjs 0m0.688s 200023
node current glob syncStream 0m0.657s 200023
~~ async ~~
node fast-glob async 0m0.351s 200023
node globby async 0m0.516s 200023
node current glob async mjs 0m0.476s 200023
node current glob stream 0m0.389s 200023
--- pattern: './**/**/**/**/**/**/**/**/*.txt' ---
~~ sync ~~
node fast-glob sync 0m0.591s 200023
node globby sync 0m0.772s 200023
node current glob.sync mjs 0m0.673s 200023
node current glob syncStream 0m0.651s 200023
~~ async ~~
node fast-glob async 0m0.352s 200023
node globby async 0m0.517s 200023
node current glob async mjs 0m0.458s 200023
node current glob stream 0m0.379s 200023
--- pattern: '**/*/*.txt' ---
~~ sync ~~
node fast-glob sync 0m0.587s 200023
node globby sync 0m0.764s 200023
node current glob.sync mjs 0m0.686s 200023
node current glob syncStream 0m0.661s 200023
~~ async ~~
node fast-glob async 0m0.355s 200023
node globby async 0m0.515s 200023
node current glob async mjs 0m0.481s 200023
node current glob stream 0m0.422s 200023
--- pattern: '**/*/**/*.txt' ---
~~ sync ~~
node fast-glob sync 0m0.587s 200023
node globby sync 0m0.766s 200023
node current glob.sync mjs 0m0.699s 200023
node current glob syncStream 0m0.676s 200023
~~ async ~~
node fast-glob async 0m0.349s 200023
node globby async 0m0.519s 200023
node current glob async mjs 0m0.485s 200023
node current glob stream 0m0.418s 200023
--- pattern: '**/[0-9]/**/*.txt' ---
~~ sync ~~
node fast-glob sync 0m0.545s 100000
node globby sync 0m0.638s 100000
node current glob.sync mjs 0m0.624s 100000
node current glob syncStream 0m0.621s 100000
~~ async ~~
node fast-glob async 0m0.324s 100000
node globby async 0m0.399s 100000
node current glob async mjs 0m0.363s 100000
node current glob stream 0m0.348s 100000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment