This website works better with JavaScript.
Home
Explore
Help
Sign In
brettlangdon
/
pypihub
mirror of
https://github.com/brettlangdon/pypihub.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
1
Wiki
Activity
Browse Source
Oops! Forgot one
Carl Jackson
11 years ago
parent
a452de8605
commit
3bfbfe4c5e
1 changed files
with
5 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-3
web/bench_test.go
+ 5
- 3
web/bench_test.go
View File
@ -133,9 +133,11 @@ func BenchmarkStatic(b *testing.B) {
b
.
ResetTimer
(
)
b
.
ReportAllocs
(
)
for
i
:=
0
;
i
<
b
.
N
;
i
++
{
m
.
ServeHTTP
(
w
,
r
)
}
b
.
RunParallel
(
func
(
pb
*
testing
.
PB
)
{
for
pb
.
Next
(
)
{
m
.
ServeHTTP
(
w
,
r
)
}
}
)
}
func
BenchmarkRoute5
(
b
*
testing
.
B
)
{
Write
Preview
Loading…
Cancel
Save