Advertisement
Guest User

Untitled

a guest
Sep 29th, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.28 KB | None | 0 0
  1. package systemcall
  2.  
  3. import (
  4.     "testing"
  5. )
  6.  
  7. func Benchmark_Client(b *testing.B) {
  8.     b.StopTimer()
  9.     conn, err := Connect()
  10.     if err != nil {
  11.         return
  12.     }
  13.    
  14.     t := make([]byte, 512, 512)
  15.    
  16.     b.StartTimer()
  17.    
  18.     for i := 0; i < b.N; i++ {
  19.         Client(conn, t)    
  20.     }
  21.    
  22.     conn.Close()
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement