Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
barseghyanartur committed Dec 11, 2019
1 parent f2cf064 commit c510054
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
1 change: 1 addition & 0 deletions requirements/bench.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ Faker==0.8.15
pyprof2calltree==1.4.4
py-spy==0.3.0
pytest-profiling==1.7.0
pycallgraph==1.0.1
2 changes: 1 addition & 1 deletion scripts/benchmark.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/env bash
python src/tld/bench.py
pycallgraph graphviz -- src/tld/bench.py
7 changes: 3 additions & 4 deletions src/tld/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# from faker import Faker
from tld import get_tld


# fake = Faker()
# fake.seed(1234)

Expand All @@ -15,10 +14,10 @@
'http://www.me.cloudfront.net',
'http://www.v2.forum.tech.google.co.uk:8001/lorem-ipsum/',
'https://pantheon.io/',
'jophy.com',
'delusionalinsanity.com',
'www.baidu.com.cn',
'jo.noexist',
'http://jophy.com',
'i.dont.exist',
'http://delusionalinsanity.com',
]
TIMES = 10_000

Expand Down
9 changes: 0 additions & 9 deletions src/tld/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,9 @@
__license__ = 'MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-or-later'
__all__ = (
'DEBUG',
# 'NAMES_LOCAL_PATH',
'NAMES_LOCAL_PATH_PARENT',
# 'NAMES_SOURCE_URL',
)

# # Source path of Mozilla's effective TLD names file.
# NAMES_SOURCE_URL = 'http://mxr.mozilla.org/mozilla/source/netwerk/dns/src/' \
# 'effective_tld_names.dat?raw=1'

# # Relative path to store the local copy of Mozilla's effective TLD names file.
# NAMES_LOCAL_PATH = 'res/effective_tld_names.dat.txt'

# Absolute base path that is prepended to NAMES_LOCAL_PATH
NAMES_LOCAL_PATH_PARENT = dirname(__file__)

Expand Down

0 comments on commit c510054

Please sign in to comment.