Skip to content

Instantly share code, notes, and snippets.

View risentveber's full-sized avatar
🤠
angry cowboy

Boris Strelnikov risentveber

🤠
angry cowboy
View GitHub Profile
@risentveber
risentveber / HttpProxy.go
Created June 20, 2018 15:33 — forked from yowu/HttpProxy.go
A simple HTTP proxy by Golang
package main
import (
"flag"
"io"
"log"
"net"
"net/http"
"strings"
)
var Benchmark = require('benchmark');
var suite = new Benchmark.Suite;
var testArray = [];
for (var s = 0; s < 100000; s++) {
testArray.push(Math.floor(Math.random() * 100));
}
console.log('Testing caching')