0.3.6 • Published 10 years ago

speedcoach v0.3.6

Weekly downloads
5
License
MIT
Repository
github
Last release
10 years ago

speedcoach

Benchmark node.js modules to make them faster and lighter

Installation:

npm install speedcoach -g

Command line usage:

speedcoach express
# 0.1S start to required +6.0MB
speedcoach space
# 0.0S start to required +0.1MB
speedcoach fs 
# 0.0S start to required +0.0MB
speedcoach jquery
# 0.6S start to required +36.4MB

Using in a script:

var speedcoach = require('speedcoach')
speedcoach('start')

var numbers = []
for (i = 0 ; i < 99999; i++) {
  numbers.push(i)
}

speedcoach('array initialized')

var string = ''
for (i = 0 ; i < 99999; i++) {
  string += i
}

speedcoach('string created')

console.log(speedcoach.times())

Running that script:

node example.js

Example output:

0.1S array initialized to string created +10.9MB 
0.0S start to array initialized +0.9MB

Works in node.js or in the browser (tested with Chrome).

0.3.6

10 years ago

0.3.5

10 years ago

0.3.4

10 years ago

0.3.3

10 years ago

0.3.0

10 years ago

0.2.1

11 years ago

0.2.0

11 years ago

0.1.1

12 years ago