Skip to content

Instantly share code, notes, and snippets.

@spacejam
Last active December 15, 2015 21:50
Show Gist options
  • Save spacejam/6d38c06228ac047d5ae0 to your computer and use it in GitHub Desktop.
Save spacejam/6d38c06228ac047d5ae0 to your computer and use it in GitHub Desktop.
package main
import (
"log"
"net"
"github.com/spacejam/loghisto"
)
func benchmark() {
_, err := net.Dial("tcp", "1.2.3.4",5)
if err != nil {
log.Fatal(err)
}
}
func main() {
desiredConcurrency := uint(100)
loghisto.PrintBenchmark("benchmark1234", desiredConcurrency, benchmark)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment