Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package systemcall
- import (
- "testing"
- )
- func Benchmark_Client(b *testing.B) {
- b.StopTimer()
- conn, err := Connect()
- if err != nil {
- return
- }
- t := make([]byte, 512, 512)
- b.StartTimer()
- for i := 0; i < b.N; i++ {
- Client(conn, t)
- }
- conn.Close()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement