Commit 608897a5 authored by Leo Iannacone's avatar Leo Iannacone

add history file

parent 18e7dbb1
# 0.4.0 (2014-06-12)
* [new] always show only max_lines in preview, also when new_content is recevied
* [new] get debomatic real status by reading pidfile in /var/run directory
* [new] add History file
# 0.3.0 (2014-06-09)
* [new] files can have a preview
# 0.2.4 (2014-06-09)
* [fix] bugs relative to jshint validation
# 0.2.3 (2014-06-06)
* [new] get all sources in one click
* [fix] code valdiatation via jshint
# 0.2.2 (2014-06-04)
* [fix] upgrade to express 4.x
# 0.2.1 (2014-04-13)
* [fix] some style bugs
# 0.2.0 (2014-04-08)
* [new] get all debs in one click
* [new] enaled glossy theme by default
* [new] window with has a rationale title
* [new] improved welcome messages
* [new] upgrade to express 3.x
* [new] handle with debomatic pre_chroot and post_chroot hooks
* [new] add options -c and -h to cli script
* [fix] back on tail module instead of tailfd
* [fix] sticky bar
* [fix] serve js and css with a version number
* [fix] add new content to file using append() - reduce cpu usage
* [fix] many other bugs fix
# 0.1.0 (2014-04-07)
* Initial release
'use strict';
/**
* Benchmark related modules.
*/
var benchmark = require('benchmark')
, microtime = require('microtime');
/**
* Logger
*/
var logger = new(require('devnull'))({ timestamp: false, namespacing: 0 });
/**
* Preparation code.
*/
var EventEmitter2 = require('eventemitter2').EventEmitter2
, EventEmitter3 = require('../../').EventEmitter
, EventEmitter1 = require('events').EventEmitter;
function foo() {
if (arguments.length > 100) console.log('damn');
return 1;
}
/**
* Instances.
*/
var ee2 = new EventEmitter2()
, ee3 = new EventEmitter3()
, ee1 = new EventEmitter1()
, j, i;
for (i = 0; i < 10; i++) {
for (j = 0; j < 10; j++) {
ee1.on('event:' + i, foo);
}
}
for (i = 0; i < 10; i++) {
for (j = 0; j < 10; j++) {
ee2.on('event:' + i, foo);
}
}
for (i = 0; i < 10; i++) {
for (j = 0; j < 10; j++) {
ee3.on('event:' + i, foo);
}
}
(
new benchmark.Suite()
).add('EventEmitter 1', function test1() {
for (i = 0; i < 10; i++) {
ee1.emit('event:' + i);
}
}).add('EventEmitter 2', function test2() {
for (i = 0; i < 10; i++) {
ee2.emit('event:' + i);
}
}).add('EventEmitter 3', function test2() {
for (i = 0; i < 10; i++) {
ee3.emit('event:' + i);
}
}).on('cycle', function cycle(e) {
var details = e.target;
logger.log('Finished benchmarking: "%s"', details.name);
logger.metric('Count (%d), Cycles (%d), Elapsed (%d), Hz (%d)'
, details.count
, details.cycles
, details.times.elapsed
, details.hz
);
}).on('complete', function completed() {
logger.info('Benchmark: "%s" is was the fastest.'
, this.filter('fastest').pluck('name')
);
}).run();
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment