Examples of client instantiation, datafile management and Feature enabled are provided in main.go
Profiling
Prerequisite:
go get github.com/pkg/profile
DATAFILES_DIR env var has to be set to point to the path where 100_entities.json is located
To get profiles:
CPU profile. Execute: go build -ldflags "-X main.ProfileMode=cpu" benchmark/main.go && ./main_profile_feature. It will create cpu.pprof file in your current directory. Then run: go tool pprof -http=:8080 cpu.pprof and profile cpu usage using web browser.
Memory profile. Execute: go build -ldflags "-X main.ProfileMode=mem" benchmark/main.go && ./main_profile_feature. It will create mem.pprof file in your current directory. Then run: go tool pprof -http=:8080 mem.pprof and profile memory using browser.