mirror of
https://github.com/pgsty/minio.git
synced 2026-08-10 00:03:29 +03:00
Block change to 1M from 128KiB and extensively use buffer pools.
Following are the benefits of this change. ``` benchmark old allocs new allocs delta BenchmarkPutObjectPart5MbFS-4 46172 16383 -64.52% BenchmarkPutObjectPart10MbFS-4 36849 7223 -80.40% BenchmarkPutObjectPart25MbFS-4 31699 3865 -87.81% BenchmarkPutObjectPart50MbFS-4 27577 2481 -91.00% BenchmarkPutObjectVerySmallFS-4 57 56 -1.75% BenchmarkPutObject10KbFS-4 57 56 -1.75% BenchmarkPutObject100KbFS-4 57 56 -1.75% BenchmarkPutObject1MbFS-4 176 56 -68.18% BenchmarkPutObject5MbFS-4 720 90 -87.50% BenchmarkPutObject10MbFS-4 1400 124 -91.14% BenchmarkPutObject25MbFS-4 3440 261 -92.41% BenchmarkPutObject50MbFS-4 6841 466 -93.19% ```
This commit is contained in:
+4
-4
@@ -679,8 +679,8 @@ func TestPosixListDir(t *testing.T) {
|
||||
t.Errorf("Unable to initialize posix, %s", err)
|
||||
}
|
||||
|
||||
if err = posixStorage.DeleteFile("bin", "yes"); !os.IsPermission(err) {
|
||||
t.Errorf("expected: Permission error, got: %s", err)
|
||||
if err = posixStorage.DeleteFile("bin", "yes"); err != errFileAccessDenied {
|
||||
t.Errorf("expected: %s error, got: %s", errFileAccessDenied, err)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -793,8 +793,8 @@ func TestDeleteFile(t *testing.T) {
|
||||
t.Errorf("Unable to initialize posix, %s", err)
|
||||
}
|
||||
|
||||
if err = posixStorage.DeleteFile("bin", "yes"); !os.IsPermission(err) {
|
||||
t.Errorf("expected: Permission error, got: %s", err)
|
||||
if err = posixStorage.DeleteFile("bin", "yes"); err != errFileAccessDenied {
|
||||
t.Errorf("expected: %s error, got: %s", errFileAccessDenied, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user