使用MMAP提升缓存读取性能

This commit is contained in:
GoEdgeLab
2024-03-29 19:28:16 +08:00
parent 789f497afb
commit 60a4016101
5 changed files with 85 additions and 14 deletions

View File

@@ -14,4 +14,5 @@ func TestSystemMemoryGB(t *testing.T) {
t.Log(memutils.SystemMemoryBytes())
t.Log(memutils.SystemMemoryBytes())
t.Log(memutils.SystemMemoryBytes()>>30, "GB")
t.Log("available:", memutils.AvailableMemoryGB())
}