Skip to content

Instantly share code, notes, and snippets.

@dawnbreaks
dawnbreaks / client.go
Created January 10, 2013 09:42
a simple benmark test for net/rpc pakage in golang. results on my pc : 2013/01/10 17:25:13 sequential totalRequest=100,000: delay=14.023402s : op/s=7130.937170 2013/01/10 17:25:20 parallel totalRequest=100,000: delay=7.050705s : op/s=14182.978865 environment: os: win7(32) cpu: amd phenom x4 2.90GHz mem: 4G
package main
import (
"net/rpc"
"sync"
"log"
"time"
)
type Struct1 struct {