Logo Search packages:      
Sourcecode: namebench version File versions  Download package

def libnamebench::benchmark::Benchmark::FastestAndSlowestDurationForNameServer (   self,
  ns 
)

For a given nameserver, find the fastest/slowest non-error durations.

Definition at line 181 of file benchmark.py.

00181                                                       :
    """For a given nameserver, find the fastest/slowest non-error durations."""

    fastest_duration = 2**32
    slowest_duration = -1
    for test_run_results in self.results[ns]:
      for (host, type, duration, response, error_msg) in test_run_results:
        if response and response.answer:
          if duration < fastest_duration:
            fastest_duration = duration
        if duration > slowest_duration:
          slowest_duration = duration
    return (fastest_duration, slowest_duration)

  def FastestNameServerResult(self):


Generated by  Doxygen 1.6.0   Back to index