使用MMAP提升缓存读取性能

This commit is contained in:
刘祥超
2024-03-29 19:28:16 +08:00
parent 6146a829ed
commit 10319ab48f
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())
}