2
0
mirror of synced 2025-02-23 14:18:13 +00:00
torrent/struct_test.go

13 lines
245 B
Go
Raw Normal View History

2020-09-29 16:24:43 +10:00
package torrent
import (
"testing"
"unsafe"
)
2020-09-29 16:42:52 +10:00
func TestStructSizes(t *testing.T) {
2020-09-29 16:37:58 +10:00
t.Log("[]*File", unsafe.Sizeof([]*File(nil)))
t.Log("Piece", unsafe.Sizeof(Piece{}))
2021-01-20 13:10:32 +11:00
t.Log("map[*peer]struct{}", unsafe.Sizeof(map[*Peer]struct{}(nil)))
2020-09-29 16:24:43 +10:00
}