Skip to content

Instantly share code, notes, and snippets.

View clone1018's full-sized avatar

Luke Strickland clone1018

View GitHub Profile
root@ubuntu:~/wrk# ./wrk -t2 -c20 -d10s http://gittip.axxim.net/Sophie3ac
Running 10s test @ http://gittip.axxim.net/Sophie3ac
2 threads and 20 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 37.59ms 4.05ms 78.19ms 85.00%
Req/Sec 266.99 23.42 329.00 65.65%
5290 requests in 10.00s, 4.64MB read
Requests/sec: 528.92
Transfer/sec: 474.67KB
root@ubuntu:~/wrk# ./wrk -t2 -c20 -d10s https://www.gittip.com/
Running 10s test @ https://www.gittip.com/
2 threads and 20 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 1.71s 712.82ms 2.22s 100.00%
Req/Sec 7.00 0.00 7.00 100.00%
71 requests in 10.00s, 1.93MB read
Socket errors: connect 0, read 0, write 0, timeout 27
Requests/sec: 7.10
Transfer/sec: 197.46KB
root@ubuntu:~/wrk# ./wrk -t12 -c400 -d10s https://minotar.net/avatar/clone1018.png
Running 10s test @ https://minotar.net/avatar/clone1018.png
12 threads and 400 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 84.20ms 73.33ms 416.75ms 92.37%
Req/Sec 419.12 137.76 0.85k 73.61%
40983 requests in 10.00s, 61.75MB read
Socket errors: connect 0, read 0, write 0, timeout 40
Requests/sec: 4098.10
Transfer/sec: 6.17MB
@clone1018
clone1018 / first.d.ts
Created November 3, 2013 15:13
/// <reference path="../.ts/sequelize.d.ts" /> import Sequelize = require("sequelize"); db = new Sequelize(dbConfig.database, dbConfig.username, dbConfig.password);
interface DatabaseOptions {
host?:string;
port?:number;
protocol?:any;
logging?:any;
maxConcurrentQueries?:number;
dialect?:string;
storage?:string;
omitNull?:boolean;
var weather = prompt("What is the weather today?");
if (weather === "raining") {
document.writeln('You can vote!');
} else {
document.writeln('Sorry, you can not vote yet.');
}
package main
import (
"fmt"
"net"
"os"
)
func main() {
if len(os.Args) != 2 {
@clone1018
clone1018 / gittip.js
Created October 9, 2013 01:34
Tip a user on irc!
var needle = require('needle');
var Plugin = (function () {
function Plugin(bot) {
this.commands = {};
this.users = {};
this.bot = bot;
this.commands = {
'gittip': 'onCommandGittip'
<?php
// Event autoloader
foreach (new DirectoryIterator(app_path().'/handlers') as $fileInfo) {
if($fileInfo->isDot()) continue;
$class = str_replace('.php', '', $fileInfo->getFilename());
$subscriber = new $class;
Event::subscribe($subscriber);
}
@clone1018
clone1018 / gist:6045138
Created July 20, 2013 13:57
Same test on static page
Server Software: Aspen!
Server Hostname: 192.241.140.36
Server Port: 8537
Document Path: /about/terms/
Document Length: 17628 bytes
Concurrency Level: 10
Time taken for tests: 44.764 seconds
Complete requests: 1000
Pure gittip with fake data running postgres fresh locally.
Remote: SF
Gittip: NY - 2GB Ram 40GB SSD Disk New York 1 Ubuntu 13.04 x64
Server Software: Aspen!
Server Hostname: 192.241.140.36
Server Port: 8537
Document Path: /
Document Length: 28945 bytes