Skip to content

Instantly share code, notes, and snippets.

View gmiroshnykov's full-sized avatar

George Miroshnykov gmiroshnykov

  • Dojo
View GitHub Profile
var vows = require('vows'),
assert = require('assert');
vows.describe('Buggy Test').addBatch({
'when async test returns error': {
topic: function() {
var callback = this.callback;
setTimeout(function() {
callback(new Error());
}, 100);
@gmiroshnykov
gmiroshnykov / gist:837711
Created February 21, 2011 21:17
sudo npm link --loglevel verbose
vagrant@vagrantup:/opt/euro-web$ sudo npm link --loglevel verbose
npm info it worked if it ends with ok
npm verb cli [ 'link',
npm verb cli '--loglevel',
npm verb cli 'verbose' ]
npm info using npm@0.3.3
npm info using node@v0.4.1
npm verb config file /home/vagrant/.npmrc
npm verb config file /usr/local/etc/npmrc
npm info link /opt/euro-web
laggyluke@ubuntu:~$ ab -n 1000 -c 100 http://127.0.0.1:8124/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 127.0.0.1 (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests