[tor-commits] [bridgedb/master] Decrease the time spent in deduplicate() benchmarks.
isis at torproject.org
isis at torproject.org
Fri May 1 07:10:59 UTC 2015
commit a64de660b46c19ddaa17f7cf9688464d09202e1d
Author: Isis Lovecruft <isis at torproject.org>
Date: Sun Apr 19 04:51:55 2015 +0000
Decrease the time spent in deduplicate() benchmarks.
[noci] It's taking a super long time on some of the CI machines.
---
lib/bridgedb/test/test_parse_descriptors.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/bridgedb/test/test_parse_descriptors.py b/lib/bridgedb/test/test_parse_descriptors.py
index 5ef3f6a..a7b22cf 100644
--- a/lib/bridgedb/test/test_parse_descriptors.py
+++ b/lib/bridgedb/test/test_parse_descriptors.py
@@ -492,7 +492,7 @@ class ParseDescriptorsTests(unittest.TestCase):
def test_parse_descriptors_parseExtraInfoFiles_benchmark_100_bridges(self):
"""Benchmark test for ``b.p.descriptors.parseExtraInfoFiles``."""
print()
- for i in range(1, 11):
+ for i in range(1, 6):
descFiles = self.createDuplicatesForBenchmark(b=100, n=i)
with Benchmarker():
routers = descriptors.parseExtraInfoFiles(*descFiles)
@@ -500,7 +500,7 @@ class ParseDescriptorsTests(unittest.TestCase):
def test_parse_descriptors_parseExtraInfoFiles_benchmark_1000_bridges(self):
"""Benchmark test for ``b.p.descriptors.parseExtraInfoFiles``."""
print()
- for i in range(1, 11):
+ for i in range(1, 6):
descFiles = self.createDuplicatesForBenchmark(b=1000, n=i)
with Benchmarker():
routers = descriptors.parseExtraInfoFiles(*descFiles)
@@ -513,7 +513,7 @@ class ParseDescriptorsTests(unittest.TestCase):
"Run it on your own free time."))
print()
- for i in range(1, 11):
+ for i in range(1, 6):
descFiles = self.createDuplicatesForBenchmark(b=10000, n=i)
with Benchmarker():
routers = descriptors.parseExtraInfoFiles(*descFiles)
More information about the tor-commits
mailing list