Skip to content

Commit 2b71207

Browse files
committed
Typos
1 parent eb2d60c commit 2b71207

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ make docker_benchmark
3838
Current results on a 2.2GHz Intel Core i7 MBP (in seconds):
3939

4040
```
41-
Benchmarking on 104300 URLs x 10 times
41+
Benchmark results on 104300 URLs x 10 times, in seconds:
4242
4343
Name Sum Mean Median 90%
4444
---------------- ------------- ----------------- ----------------- -----------------
@@ -61,7 +61,7 @@ uritools 10.266307 9.84305560882e-06 8.99999999859e-06 1.2000000
6161
pygurl 2.30582700001 2.2107641419e-06 1.99999999495e-06 2.99999999243e-06
6262
yurl 11.902723 1.14120067114e-05 1.10000000006e-05 1.40000000073e-05
6363
64-
hotname:
64+
hostname:
6565
---- ---- ---- ---- ----
6666
urlparse4 4.098633 3.92965771812e-06 4.00000000411e-06 4.00000000411e-06
6767
urlparse2 4.83505700001 4.63572099713e-06 4.00000000411e-06 5.99999999906e-06

benchmarks/urls.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
with open("tests/urls/%s" % fp) as f:
2929
URLS += f.readlines()
3030

31-
print "Benchmarking on %s URLs x %s times" % (len(URLS), REPEATS)
32-
print
33-
3431
data = []
3532

3633

@@ -73,7 +70,7 @@ def title(name):
7370

7471
# Not very representative because some libraries have functions to access the host directly without parsing the rest.
7572
# Might still be useful for some people!
76-
title("hotname")
73+
title("hostname")
7774
benchmark("urlparse4", lambda url: urlparse4.urlsplit(url).hostname)
7875
benchmark("urlparse2", lambda url: urlparse2.urlsplit(url).hostname)
7976
benchmark("urlparse", lambda url: urlparse.urlsplit(url).hostname)
@@ -90,7 +87,8 @@ def title(name):
9087

9188

9289
print
93-
print "Recap:"
90+
print "Benchmark results on %s URLs x %s times, in seconds:" % (len(URLS), REPEATS)
91+
print
9492
print
9593
print tabulate.tabulate(data, headers=["Name", "Sum", "Mean", "Median", "90%"])
9694
print

0 commit comments

Comments
 (0)