gojek / weaver

An Advanced HTTP Reverse Proxy with Dynamic Sharding Strategies
Apache License 2.0
601 stars 53 forks source link

Shard package tests take 17 sec to run #12

Closed rShetty closed 5 years ago

rShetty commented 5 years ago
gwthm-in commented 5 years ago

Ran sampling on tests. Uniform sharding test is taking longer time to run. Should test this in alternative way. Here is the test that taking more time.

$  time go test -run TestShouldShardUniformally
PASS
ok      github.com/gojektech/weaver/pkg/shard   11.539s
go test -run TestShouldShardUniformally  13.47s user 0.75s system 112% cpu 12.585 total