The code being benchmarked is in this Github repo:
https://github.com/kidoman/fibrous
We run:
boom -n 100000 -c 100 http://localhost:3000/users/1
The code being benchmarked is in this Github repo:
https://github.com/kidoman/fibrous
We run:
boom -n 100000 -c 100 http://localhost:3000/users/1
package web | |
import ( | |
"io" | |
"net" | |
"net/http" | |
"appengine" | |
"appengine/socket" | |
) |
package main | |
import ( | |
"crypto/tls" | |
"crypto/x509" | |
"io/ioutil" | |
"net" | |
"net/http" | |
"appengine" |
1.9.3-p286 |
#!/usr/bin/perl | |
######################################################################### | |
# htpasswd-ssha is a replacement of the well known apache htpasswd. | |
# All written in pure perl, it allows you to crypt SSHA passowrd for | |
# nginx per example. | |
# | |
# Copyright (C) 2011 Guillaume Seigneuret (Omega Cube) | |
# | |
# This program is free software: you can redistribute it and/or modify |
package main | |
import ( | |
"crypto/rand" | |
"crypto/sha1" | |
"encoding/hex" | |
"flag" | |
"fmt" | |
"io" | |
"io/ioutil" |
// Dining Gophers^2 | |
// - By Karan | |
package main | |
import ( | |
"flag" | |
"log" | |
"runtime" | |
"time" |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <math.h> | |
typedef int i; //Save space by using 'i' instead of 'int' | |
typedef float f; //Save even more space by using 'f' instead of 'float' | |
//Define a vector class with constructor and operator: 'v' | |
struct v { | |
f x,y,z; // Vector has three float attributes. |
#include <stdlib.h> // card > aek.ppm | |
#include <stdio.h> | |
#include <math.h> | |
typedef int i;typedef float f;struct v{ | |
f x,y,z;v operator+(v r){return v(x+r.x | |
,y+r.y,z+r.z);}v operator*(f r){return | |
v(x*r,y*r,z*r);}f operator%(v r){return | |
x*r.x+y*r.y+z*r.z;}v(){}v operator^(v r | |
){return v(y*r.z-z*r.y,z*r.x-x*r.z,x*r. | |
y-y*r.x);}v(f a,f b,f c){x=a;y=b;z=c;}v |
type randFn func() float64 | |
func makeRand(seed uint32) randFn { | |
return func() float64 { | |
seed += seed | |
seed ^= 1 | |
if int32(seed) < 0 { | |
seed ^= 0x88888eef | |
} | |
return float64(seed%95) / float64(95) |