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 main | |
| import ( | |
| "crypto/tls" | |
| "crypto/x509" | |
| "io/ioutil" | |
| "net" | |
| "net/http" | |
| "appengine" |
| package web | |
| import ( | |
| "io" | |
| "net" | |
| "net/http" | |
| "appengine" | |
| "appengine/socket" | |
| ) |
| package main | |
| import ( | |
| "crypto/tls" | |
| "crypto/x509" | |
| "encoding/json" | |
| "fmt" | |
| "io/ioutil" | |
| "net/http" | |
| ) |
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 main | |
| const accuracy = 0.00001 | |
| func multiplier(i int, angle, num, den float64) (float64, float64) { | |
| num *= angle * angle | |
| den *= float64(i * (i - 1)) | |
| return num, den | |
| } |
| package main | |
| import ( | |
| "github.com/gorilla/mux" | |
| rpio "github.com/stianeikeland/go-rpio" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" | |
| "time" |
| package main | |
| import ( | |
| rpio "github.com/stianeikeland/go-rpio" | |
| "log" | |
| "net/http" | |
| ) | |
| func main() { | |
| log.Print("Starting up...") |
| package main | |
| import ( | |
| "errors" | |
| "flag" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "os" |
| 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) |
| #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 |