mirror of
https://github.com/minio/minio.git
synced 2024-12-27 15:45:55 -05:00
Merge pull request #219 from harshavardhana/pr_out_add_1mb_block_benchmarks
This commit is contained in:
commit
56bd413a16
@ -109,7 +109,7 @@ func TestBlockGeneric(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var bench = New()
|
var bench = New()
|
||||||
var buf = make([]byte, 8192)
|
var buf = make([]byte, 1024*1024)
|
||||||
|
|
||||||
func benchmarkSize(b *testing.B, size int) {
|
func benchmarkSize(b *testing.B, size int) {
|
||||||
b.SetBytes(int64(size))
|
b.SetBytes(int64(size))
|
||||||
@ -132,3 +132,7 @@ func BenchmarkHash1K(b *testing.B) {
|
|||||||
func BenchmarkHash8K(b *testing.B) {
|
func BenchmarkHash8K(b *testing.B) {
|
||||||
benchmarkSize(b, 8192)
|
benchmarkSize(b, 8192)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func BenchmarkHash1M(b *testing.B) {
|
||||||
|
benchmarkSize(b, 1024*1024)
|
||||||
|
}
|
||||||
|
@ -96,7 +96,7 @@ func TestBlockSize(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var bench = New()
|
var bench = New()
|
||||||
var buf = make([]byte, 8192)
|
var buf = make([]byte, 1024*1024)
|
||||||
|
|
||||||
func benchmarkSize(b *testing.B, size int) {
|
func benchmarkSize(b *testing.B, size int) {
|
||||||
b.SetBytes(int64(size))
|
b.SetBytes(int64(size))
|
||||||
@ -119,3 +119,7 @@ func BenchmarkHash1K(b *testing.B) {
|
|||||||
func BenchmarkHash8K(b *testing.B) {
|
func BenchmarkHash8K(b *testing.B) {
|
||||||
benchmarkSize(b, 8192)
|
benchmarkSize(b, 8192)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func BenchmarkHash1M(b *testing.B) {
|
||||||
|
benchmarkSize(b, 1024*1024)
|
||||||
|
}
|
||||||
|
@ -96,7 +96,7 @@ func TestBlockSize(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var bench = New()
|
var bench = New()
|
||||||
var buf = make([]byte, 8192)
|
var buf = make([]byte, 1024*1024)
|
||||||
|
|
||||||
func benchmarkSize(b *testing.B, size int) {
|
func benchmarkSize(b *testing.B, size int) {
|
||||||
b.SetBytes(int64(size))
|
b.SetBytes(int64(size))
|
||||||
@ -119,3 +119,7 @@ func BenchmarkHash1K(b *testing.B) {
|
|||||||
func BenchmarkHash8K(b *testing.B) {
|
func BenchmarkHash8K(b *testing.B) {
|
||||||
benchmarkSize(b, 8192)
|
benchmarkSize(b, 8192)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func BenchmarkHash1M(b *testing.B) {
|
||||||
|
benchmarkSize(b, 1024*1024)
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user