Sha256: 981aea4a3b544f3d7872177fb2787e8f02ca8935d4341892598260a99bd5f181

Contents?: true

Size: 425 Bytes

Versions: 50

Compression:

Stored size: 425 Bytes

Contents

var m = require('./minimatch.js')
var pattern = "**/*.js"
var expand = require('brace-expansion')
var files = expand('x/y/z/{1..1000}.js')
var start = process.hrtime()

for (var i = 0; i < 1000; i++) {
  for (var f = 0; f < files.length; f++) {
    var res = m(pattern, files[f])
  }
  if (!(i%10)) process.stdout.write('.')
}
console.log('done')
var dur = process.hrtime(start)
console.log('%s ms', dur[0]*1e3 + dur[1]/1e6)

Version data entries

50 entries across 50 versions & 5 rubygems

Version Path
opal-0.11.4 stdlib/nodejs/node_modules/glob/node_modules/minimatch/benchmark.js
opal-0.11.3 stdlib/nodejs/node_modules/glob/node_modules/minimatch/benchmark.js
opal-0.11.2 stdlib/nodejs/node_modules/glob/node_modules/minimatch/benchmark.js
opal-0.11.1 stdlib/nodejs/node_modules/glob/node_modules/minimatch/benchmark.js
opal-0.11.1.pre stdlib/nodejs/node_modules/glob/node_modules/minimatch/benchmark.js
opal-0.10.6 stdlib/nodejs/node_modules/glob/node_modules/minimatch/benchmark.js
opal-0.10.6.beta stdlib/nodejs/node_modules/glob/node_modules/minimatch/benchmark.js
opal-0.11.0 stdlib/nodejs/node_modules/glob/node_modules/minimatch/benchmark.js
opal-0.10.5 stdlib/nodejs/node_modules/glob/node_modules/minimatch/benchmark.js
opal-0.10.4 stdlib/nodejs/node_modules/glob/node_modules/minimatch/benchmark.js
opal-0.11.0.rc1 stdlib/nodejs/node_modules/glob/node_modules/minimatch/benchmark.js
opal-0.10.3 stdlib/nodejs/node_modules/glob/node_modules/minimatch/benchmark.js
opal-0.10.2 stdlib/nodejs/node_modules/glob/node_modules/minimatch/benchmark.js
opal-0.10.1 stdlib/nodejs/node_modules/glob/node_modules/minimatch/benchmark.js
opal-0.10.0 stdlib/nodejs/node_modules/glob/node_modules/minimatch/benchmark.js
opal-0.10.0.rc2 stdlib/nodejs/node_modules/glob/node_modules/minimatch/benchmark.js
opal-0.9.4 stdlib/nodejs/node_modules/glob/node_modules/minimatch/benchmark.js
opal-0.9.3 stdlib/nodejs/node_modules/glob/node_modules/minimatch/benchmark.js
opal-0.10.0.rc1 stdlib/nodejs/node_modules/glob/node_modules/minimatch/benchmark.js
opal-0.10.0.beta5 stdlib/nodejs/node_modules/glob/node_modules/minimatch/benchmark.js