Open th0br0 opened 6 years ago
something like this is a good way to get started: (can be run with grpcc
)
let i = 100;
let max = 25000;
let genUser = (id) => ("user_" + id);
let interval = setInterval(() => {
let user = genUser(i);
console.log(user);
// client.createUser({userId: user}, pr);
client.getDepositAddress({userId: user}, pr);
i++;
if(i == max) clearInterval(interval);
}, 350);
We should write a dumb client that can be used to stress test the hub.