Esempio n. 1
0
  def test_perf(self):
    with self._connect() as proxy:
      big_str = N.ndarray(1000 * 1000 * 10, dtype=N.uint32)

      req = Ping(ping=big_str)
      with util.timer_ctx('send 400MB'):
        for i in range(10):
          ping_req = proxy.ping(req)
          ping_req.wait()
Esempio n. 2
0
    def test_perf(self):
        with self._connect() as proxy:
            big_str = N.ndarray(1000 * 1000 * 10, dtype=N.uint32)

            req = Ping(ping=big_str)
            with util.timer_ctx('send 400MB'):
                for i in range(10):
                    ping_req = proxy.ping(req)
                    ping_req.wait()
Esempio n. 3
0
 def test_latency(self):
   with self._connect() as proxy:
     ping_req = Ping(ping='Hello!')
     with util.timer_ctx('send 100 requests'):
       for i in range(100):
         proxy.ping(ping_req).wait()
Esempio n. 4
0
 def test_latency(self):
     with self._connect() as proxy:
         ping_req = Ping(ping='Hello!')
         with util.timer_ctx('send 100 requests'):
             for i in range(100):
                 proxy.ping(ping_req).wait()