SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
Minor fix for the `CompactMap()` performance test. (#6836)
Lisandro Pin720473174987
diff --git a/weed/storage/needle_map/compact_map_perf_test.go b/weed/storage/needle_map/compact_map_perf_test.goindex 2bb2694fd7..e1fb1b0352 100644--- a/weed/storage/needle_map/compact_map_perf_test.go+++ b/weed/storage/needle_map/compact_map_perf_test.go@@ -16,7 +16,7 @@ import (To see the memory usage:go test -run TestMemoryUsage-The TotalAlloc section shows the memory increase for each iteration.+The Alloc section shows the in-use memory increase for each iteration.go test -run TestMemoryUsage -memprofile=mem.outgo tool pprof --alloc_space needle.test mem.out@@ -81,7 +81,7 @@ func PrintMemUsage(totalRowCount uint64) {var m runtime.MemStatsruntime.ReadMemStats(&m)// For info on each, see: https://golang.org/pkg/runtime/#MemStats- fmt.Printf("Each %.2f Bytes", float64(m.TotalAlloc)/float64(totalRowCount))+ fmt.Printf("Each %.02f Bytes", float64(m.Alloc)/float64(totalRowCount))fmt.Printf("\tAlloc = %v MiB", bToMb(m.Alloc))fmt.Printf("\tTotalAlloc = %v MiB", bToMb(m.TotalAlloc))fmt.Printf("\tSys = %v MiB", bToMb(m.Sys))