summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xtest/all_benchmarks.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/test/all_benchmarks.py b/test/all_benchmarks.py
index e1b47142..20f11ad8 100755
--- a/test/all_benchmarks.py
+++ b/test/all_benchmarks.py
@@ -30,15 +30,7 @@ if __name__ == '__main__':
 	modules = (fname[:-3] for fname in os.listdir(sys.path[0]) \
 			if fname[:3] == 'bm_' and fname[-3:] == '.py')
 
-	benchmarks = []  # find all benchmark (class, methodname) pairs
-	for val in [__import__(module) for module in modules]:
-		for cls in vars(val).values():
-			if type(cls) == type:
-				for methodname in vars(cls):
-					if methodname.startswith('bm_'):
-						benchmarks.append((cls, methodname))
-
-	for cls, methodname in benchmarks:
+	def run_benchmark(cls, methodname):
 		full_method_name = "{0}.{1}".format(cls.__name__, methodname)
 		if all(re.search(full_method_name) for re in regexes):
 			method = getattr(cls(), methodname)
@@ -51,3 +43,10 @@ if __name__ == '__main__':
 			else:
 				t2 = time.time()
 				print("{0:60}: {1:10}s".format(full_method_name, t2 - t1))
+
+	for val in [__import__(module) for module in modules]:
+		for cls in vars(val).values():
+			if type(cls) == type:
+				for methodname in vars(cls):
+					if methodname.startswith('bm_'):
+						run_benchmark(cls, methodname)
55:18 -0700 1323 - keyboard supports backspace and newline' href='/akkartik/mu/commit/047jump_label.cc?h=main&id=dc1323e936fb79823767f85529be15e0456b3169'>dc1323e9 ^
b142a762 ^
795f5244 ^
b142a762 ^
215365d4 ^
b2e4056d ^
dc1323e9 ^

363be37f ^
b24eb476 ^
6c96a437 ^
795f5244 ^
d3c120c1 ^

f3760b0f ^
f22250a1 ^
4adb09bc ^

1b76245c ^
4adb09bc ^
f22250a1 ^
4adb09bc ^

dc1323e9 ^
6c96a437 ^
795f5244 ^
e6692482 ^
fa6d93b2 ^
2b250717 ^
fa6d93b2 ^

4071055a ^
dc1323e9 ^
e6692482 ^
fa6d93b2 ^
2b250717 ^
fa6d93b2 ^

4071055a ^
dc1323e9 ^
e6692482 ^
fa6d93b2 ^
4071055a ^
dc1323e9 ^
e6692482 ^

fa6d93b2 ^
4071055a ^
dc1323e9 ^



b24eb476 ^
e4630643 ^
9dcbec39 ^
4adb09bc ^
e4630643 ^

ef96f57c ^
0f125d5f ^
4adb09bc ^
9dcbec39 ^
4adb09bc ^


f3760b0f ^
9dcbec39 ^
4adb09bc ^


f22250a1 ^
dc1323e9 ^


1ead3562 ^
dc1323e9 ^

8ba8f0f6 ^
192d59d3 ^
dc1323e9 ^






1ead3562 ^
dc1323e9 ^

bc643692 ^
192d59d3 ^
dc1323e9 ^






1ead3562 ^
dc1323e9 ^

bc643692 ^
192d59d3 ^
dc1323e9 ^




4071055a ^

1ead3562 ^
4071055a ^
192d59d3 ^


8ba8f0f6 ^
192d59d3 ^
4071055a ^
192d59d3 ^
4071055a ^


4adb09bc ^
fa6d93b2 ^

1ead3562 ^
fa6d93b2 ^

e62aa7e3 ^
fa6d93b2 ^


1ead3562 ^
dd660682 ^
fa6d93b2 ^
dd660682 ^
fa6d93b2 ^
5f98a10c ^

1ead3562 ^
4adb09bc ^
192d59d3 ^
4adb09bc ^
192d59d3 ^
4adb09bc ^
5f98a10c ^
4adb09bc ^

5f98a10c ^
1ead3562 ^
4adb09bc ^
192d59d3 ^


4adb09bc ^
192d59d3 ^
4adb09bc ^
192d59d3 ^
4adb09bc ^
9dcbec39 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183