Skip to content

Instantly share code, notes, and snippets.

View dragon3's full-sized avatar
🍺
🍺 🍻 🍺 🍻 🍺

Ryuzo Yamamoto dragon3

🍺
🍺 🍻 🍺 🍻 🍺
View GitHub Profile
@dragon3
dragon3 / gist:81b094859fa520a7b57b
Created September 24, 2014 08:04
docker-h2o-benchmark result - 2014/09/24
- Host: MacBook Air Mid 2013, CPU/1.7Ghz Intel Core i7, MEM: 8GB 1600MHz DDR3
- OS: OSX Mavericks 10.9.5
- VM: VirtualBox 4.3.16 r95972
```
benchmark: h2o
Running 30s test @ http://172.17.42.1:28080/
1 threads and 500 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 23.63ms 7.00ms 110.14ms 80.42%
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use Encode qw(encode_utf8);
use RPC::XML::Client;
$RPC::XML::ENCODING = 'utf8';
#!/bin/bash
# Create a Amazon Linux base image for Docker
#
set -e
MIRROR_URL="http://packages.ap-northeast-1.amazonaws.com/2013.09/main/201309001984/x86_64/"
MIRROR_URL_UPDATES="http://packages.ap-northeast-1.amazonaws.com/2013.09/updates/c821ef08810f/x86_64/"
yum --enablerepo=epel install -y febootstrap xz
;; (setenv "PERL5LIB" "/home/yamamoto/perl5/lib/perl5:/home/yamamoto/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:$PERL5LIB")
(setq exec-path (cons "/home/yamamoto/perl5/perlbrew/bin" exec-path))
(setenv "PATH" (concat '"/home/yamamoto/perl5/perlbrew/bin:" (getenv "PATH")))
(autoload 'cperl-mode
"cperl-mode"
"alternate mode for editing Perl programs" t)
(fset 'perl-mode 'cperl-mode)
use strict;
use warnings;
use Plack::Request;
use Plack::Response;
use AnyEvent::HTTP;
use Cache::FastMmap;
my $cache = Cache::FastMmap->new( expire_time => "1h" );
use strict;
use warnings;
use utf8;
use Encode qw(encode_utf8);
use MIME::Base64 qw(decode_base64);
use OAuth::Lite::Consumer;
use Plack::Request;
use Plack::Response;
[core]
pager = LESS=-R less
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
lg = log -p
[github]
#!/usr/bin/env perl
use feature ":5.10";
use strict;
use utf8;
use Tatsumaki::Error;
use Tatsumaki::Application;
use Tatsumaki::HTTPClient;
use Tatsumaki::Server;
use Tatsumaki::MessageQueue;
/usr/bin/tr '\015' '\012' < test.cgi > test2.cgi
chmod +x test2.cgi
diff --git a/xpi/chrome/content/quickPostForm.js b/xpi/chrome/content/quickPostForm.js
index 1ac39b6..ba8912c 100755
--- a/xpi/chrome/content/quickPostForm.js
+++ b/xpi/chrome/content/quickPostForm.js
@@ -78,11 +78,12 @@ function DialogPanel(position, message){
}
window.addEventListener('resize', bind('onWindowResize', self), true);
+
} finally {