소스 검색

merge

tags/0.1.3
mikespook 11 년 전
부모
커밋
1e2936aa6b
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. +10
    -0
      common/gearman_test.go

+ 10
- 0
common/gearman_test.go 파일 보기

@@ -35,4 +35,14 @@ func TestBytesToUint32s(t *testing.T) {
}
}

func BenchmarkByteToUnit32(b * testing.B) {
for i := 0; i < b.N; i++ {
BytesToUint32([4]byte{0xF, 0xF, 0xF, 0xF});
}
}

func BenchmarkUint32ToByte(b *testing.B) {
for i := 0; i < b.N; i++ {
Uint32ToBytes(123456);
}
}

불러오는 중...
취소
저장