Beispiel #1
0
 def test_parse_descriptors_parseExtraInfoFiles_benchmark_100_bridges(self):
     """Benchmark test for ``b.p.descriptors.parseExtraInfoFiles``."""
     print()
     for i in range(1, 6):
         descFiles = self.createDuplicatesForBenchmark(b=100, n=i)
         with Benchmarker():
             routers = descriptors.parseExtraInfoFiles(*descFiles)
    def test_parse_descriptors_parseExtraInfoFiles_benchmark_1000_bridges(self):
        """Benchmark test for ``b.p.descriptors.parseExtraInfoFiles``."""
        raise SkipTest(("This test can take several minutes to complete. "
                        "Run it on your own free time."))

        print()
        for i in range(1, 6):
            descFiles = self.createDuplicatesForBenchmark(b=1000, n=i)
            with Benchmarker():
                routers = descriptors.parseExtraInfoFiles(*descFiles)
    def test_parse_descriptors_parseExtraInfoFiles_benchmark_10000_bridges(
            self):
        """Benchmark test for ``b.p.descriptors.parseExtraInfoFiles``.
        The algorithm should grow linearly in the number of duplicates.
        """
        raise SkipTest(("This test takes ~7 minutes to complete. "
                        "Run it on your own free time."))

        print()
        for i in range(1, 6):
            descFiles = self.createDuplicatesForBenchmark(b=10000, n=i)
            with Benchmarker():
                routers = descriptors.parseExtraInfoFiles(*descFiles)