Skip to content

Instantly share code, notes, and snippets.

@stiletto
stiletto / gist:3193655
Created July 28, 2012 14:48
Results of hammering varnish (static pages)
ab -c 1 -n 10000 http://bnw.im/static/stat.html
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 bnw.im (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
python -c 'for a,b in zip(file("file1"),file("file2")): print a.strip(),b.strip()'
#include <netpbm/pam.h>
//int getpx(struct pam *inpam, int currow, int row, int col) {
#define DIST 8
#define min(x,y) ( (x<y) ? (x) : (y) )
#define max(x,y) ( (x>y) ? (x) : (y) )
#include <netpbm/pam.h>
//int getpx(struct pam *inpam, int currow, int row, int col) {
#define DIST 8
#define min(x,y) ( (x<y) ? (x) : (y) )
#define max(x,y) ( (x>y) ? (x) : (y) )
--- out.c.orig 2011-06-01 02:11:37.000000000 +0400
+++ out.c 2012-02-23 17:04:21.000000000 +0400
@@ -1136,15 +1136,15 @@
xhash_free(query->hosts);
query->hosts = NULL;
- if (idna_to_unicode_8z8z(query->name, &domain, 0) != IDNA_SUCCESS)
+ /*if (idna_to_unicode_8z8z(query->name, &domain, 0) != IDNA_SUCCESS)
{
log_write(query->s2s->log, LOG_ERR, "idna dns decode for %s failed", query->name);
Thu Feb 23 13:52:02 2012 [notice] [19] [46.151.157.21, port=49709] incoming connection
Thu Feb 23 13:52:02 2012 [notice] [19] [46.151.157.21, port=49709] incoming stream online (id zoxgqu56pwl86rl0iuhhyg52a6d857z5vxmmrrsh)
Thu Feb 23 13:52:02 2012 [notice] [19] [46.151.157.21, port=49709] received dialback auth request for route 'bnw.im/xn--rih.co.cc'
Thu Feb 23 13:52:03 2012 [notice] dns lookup for ⌨.co.cc returned 1 result (ttl 33322)
Thu Feb 23 13:52:21 2012 [notice] [20] [174.129.226.140, port=17149] incoming connection
Thu Feb 23 13:52:21 2012 [notice] [20] [174.129.226.140, port=17149] incoming stream online (id odpu4bvm5c43ta64gjcmrcrnad9251ktf9oklj6r)
Thu Feb 23 13:52:22 2012 [notice] [20] [174.129.226.140, port=17149] received dialback auth request for route 'bnw.im/talkr.im'
Thu Feb 23 13:52:22 2012 [notice] dns lookup for talkr.im returned 1 result (ttl 273)
Thu Feb 23 13:52:22 2012 [notice] [21] [174.129.226.140, port=5269] outgoing connection for 'talkr.im'
Thu Feb 23 13:52:22 2012 [notice] [21]