浏览代码

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);
}
}

正在加载...
取消
保存