Sha256: e83bc91406317a9b1c3faed0ad5f35c5179f1a083fe73c8b486cd2d0c45dad7d

Contents?: true

Size: 533 Bytes

Versions: 27

Compression:

Stored size: 533 Bytes

Contents

/**
 * Module dependencies.
 */

var stylus = require('./');

var times = 200
  , n = times
  , start = new Date;

console.log('compiling %d times', times);

while (n--) {
  stylus('body\n  color: white;\n  background: url(/images/foo.png)\n  a\n    &:hover\n      text-decoration: underline;')
    .render(function(err, css){});
}

var duration = new Date - start;
console.log('  duration: %dms', duration);
console.log('  average: %dms', duration / times);
console.log('  per second: %d', (times / (duration / 1000)).toFixed(1));

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
stylus-source-0.26.0 vendor/bm.js
stylus-source-0.25.0 vendor/bm.js
stylus-source-0.24.0 vendor/bm.js
stylus-source-0.23.0 vendor/bm.js
stylus-source-0.22.6 vendor/bm.js
stylus-source-0.22.5 vendor/bm.js
stylus-source-0.22.4 vendor/bm.js
stylus-source-0.22.3 vendor/bm.js
stylus-source-0.22.2 vendor/bm.js
stylus-source-0.22.1 vendor/bm.js
stylus-source-0.22.0 vendor/bm.js
stylus-source-0.21.2 vendor/bm.js
stylus-source-0.21.1 vendor/bm.js
stylus-source-0.21.0 vendor/bm.js
stylus-source-0.20.1 vendor/bm.js
stylus-source-0.20.0 vendor/bm.js
stylus-source-0.19.8 vendor/bm.js
stylus-source-0.19.7 vendor/bm.js
stylus-source-0.19.6 vendor/bm.js
stylus-source-0.19.5 vendor/bm.js