iotaledger / hub

Apache License 2.0
54 stars 22 forks source link

Stress test client #60

Open th0br0 opened 6 years ago

th0br0 commented 6 years ago

We should write a dumb client that can be used to stress test the hub.

th0br0 commented 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);