Skip to content

Commit 723e5ad

Browse files
committed
fixing linter issues and cleaning up
1 parent fc1fa43 commit 723e5ad

File tree

4 files changed

+5
-91
lines changed

4 files changed

+5
-91
lines changed

python-first/chart.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
import matplotlib.pyplot as plt
44

5-
from generator import find_match_gen
6-
from looping import find_match_loop
75
from test_cases import build_list
86

97
TIMEIT_TIMES = 100_000
@@ -29,13 +27,15 @@
2927
looping_times.append(
3028
timeit(
3129
"find_match_loop(list_to_search, 'Real Python', None)",
30+
setup="from looping import find_match_loop",
3231
globals=globals(),
3332
number=TIMEIT_TIMES,
3433
)
3534
)
3635
generator_times.append(
3736
timeit(
3837
"find_match_gen(list_to_search, 'Real Python', None)",
38+
setup="from generator import find_match_gen",
3939
globals=globals(),
4040
number=TIMEIT_TIMES,
4141
)

python-first/massive_list.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

python-first/perf_check.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
from timeit import timeit
22

3-
from generator import find_match_gen
4-
from looping import find_match_loop
5-
# from test_cases import long_name_list
63
from test_cases import build_list
74

8-
# from with_any import find_match_any
95
TIMES = 10_000
106
long_name_list = build_list(100_000, "Fake Python", "Real Python", 50_000)
117

128
gen_time = timeit(
139
stmt="find_match_gen(long_name_list,'Real Python')",
10+
setup="from generator import find_match_gen",
1411
globals=globals(),
1512
number=TIMES,
1613
)
1714
loop_time = timeit(
1815
stmt="find_match_loop(long_name_list, 'Real Python')",
16+
setup="from looping import find_match_loop",
1917
globals=globals(),
2018
number=TIMES,
2119
)

python-first/test_cases.py

Lines changed: 1 addition & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -14,94 +14,11 @@
1414
"Stafford",
1515
"Harlan",
1616
"Addy",
17-
"Clim",
17+
"Florina",
1818
"Mindy",
1919
"Tracy",
2020
"Mame",
2121
"Rustin",
22-
"Gordie",
23-
"Bret",
24-
"Gustavo",
25-
"Henderson",
26-
"Desirae",
27-
"Jere",
28-
"Shannen",
29-
"Llewellyn",
30-
"Flossy",
31-
"Shelba",
32-
"Darrel",
33-
"Hagan",
34-
"Papagena",
35-
"Myles",
36-
"Lacee",
37-
"Eda",
38-
"Dewitt",
39-
"Timmie",
40-
"Cloris",
41-
"Denice",
42-
"Shelby",
43-
"Jesus",
44-
"Koenraad",
45-
"Siobhan",
46-
"Wendell",
47-
"Salvatore",
48-
"Thorny",
49-
"Albertina",
50-
"Alethea",
51-
"Michaella",
52-
"Brenden",
53-
"Evaleen",
54-
"Carmencita",
55-
"Paulette",
56-
"Obediah",
57-
"Alta",
58-
"Benedicto",
59-
"Marget",
60-
"Barbara-anne",
61-
"Dalli",
62-
"Babette",
63-
"Dottie",
64-
"Tiffi",
65-
"Nat",
66-
"Kelly",
67-
"Mufi",
68-
"Trisha",
69-
"Raynell",
70-
"Roseanna",
71-
"Jessie",
72-
"Jessie",
73-
"Geoffry",
74-
"Poul",
75-
"Norrie",
76-
"Beniamino",
77-
"Randie",
78-
"Jeffry",
79-
"Cos",
80-
"Spense",
81-
"Sasha",
82-
"Bartolemo",
83-
"Raffarty",
84-
"Florina",
85-
"Philippa",
86-
"Monah",
87-
"Carolan",
88-
"Gibbie",
89-
"Rasla",
90-
"Mordy",
91-
"Pacorro",
92-
"Matias",
93-
"Phebe",
94-
"Prent",
95-
"Ardyce",
96-
"Jamesy",
97-
"Berni",
98-
"Agretha",
99-
"Trista",
100-
"Donny",
101-
"Franciska",
102-
"Chrissy",
103-
"Tulley",
104-
"Cecilla",
10522
]
10623

10724
name_lists = [name_list, empty_list, no_list, long_name_list]

0 commit comments

Comments
 (0)