func PrintSnapshotBytesSize(bytes []byte) {
	byteSize := len(bytes)
	fmt.Println("sna.Bytes:", ByteCountIEC(uint64(byteSize)))
}
PrintSnapshotBytesSize prints the humanized size of the given snapshot.
package helper
import (
	"fmt"
	"log"
	"runtime"
	gotime "time"
	"github.com/yorkie-team/yorkie/pkg/document/change"
	"github.com/yorkie-team/yorkie/pkg/document/json"
	"github.com/yorkie-team/yorkie/pkg/document/time"
	"github.com/yorkie-team/yorkie/yorkie"
	"github.com/yorkie-team/yorkie/yorkie/backend"
	"github.com/yorkie-team/yorkie/yorkie/backend/db/mongo"
	"github.com/yorkie-team/yorkie/yorkie/backend/sync/etcd"
	"github.com/yorkie-team/yorkie/yorkie/metrics/prometheus"
	"github.com/yorkie-team/yorkie/yorkie/rpc"
)
var testStartedAt int64
const (
	RPCPort                    = 21101
	MetricsPort                = 21102
	MongoConnectionURI         = "mongodb://localhost:27017"
	MongoConnectionTimeout     = "5s"
	MongoPingTimeout           = "5s"
	SnapshotThreshold          = 10
	Collection                 = "test-collection"
	AuthWebhookMaxWaitInterval = 3 * gotime.Millisecond
	AuthWebhookCacheAuthTTL    = 10 * gotime.Second
	AuthWebhookCacheUnauthTTL  = 10 * gotime.Second
	ETCDDialTimeout            = 5 * gotime.Second
	ETCDLockLeaseTime          = 30 * gotime.Second
)
var (
	ETCDEndpoints = []string{"localhost:2379"}
)
func init() {
	now := gotime.Now()
	testStartedAt = now.Unix()
}
func TestDBName() string {
	return fmt.Sprintf("test-%s-%d", yorkie.DefaultMongoYorkieDatabase, testStartedAt)
}
func TestRoot() *json.Root {
	return json.NewRoot(json.NewObject(json.NewRHTPriorityQueueMap(), time.InitialTicket))
}
func TextChangeContext(root *json.Root) *change.Context {
	return change.NewContext(
		change.InitialID,
		"",
		root,
	)
}
func PrintMemStats() {
	var mem runtime.MemStats
	runtime.ReadMemStats(&mem)
	fmt.Println("mem.Alloc:", ByteCountIEC(mem.Alloc))
	fmt.Println("mem.TotalAlloc:", ByteCountIEC(mem.TotalAlloc))
	fmt.Println("mem.HeapAlloc:", ByteCountIEC(mem.HeapAlloc))
	fmt.Println("mem.NumGC:", mem.NumGC)
}