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