Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
e30f497c
Commit
e30f497c
authored
Dec 15, 2014
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add more routing benchmarks
License: MIT Signed-off-by:
Brian Tiger Chow
<
brian@perfmode.com
>
parent
34b11a3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
epictest/bench_test.go
epictest/bench_test.go
+10
-6
No files found.
epictest/bench_test.go
View file @
e30f497c
...
...
@@ -30,12 +30,16 @@ func BenchmarkInstantaneousAddCat256MB(b *testing.B) { benchmarkAddCat(256*MB, i
var
routing
=
Config
{}
.
Routing_Slow
()
func
BenchmarkRoutingSlowAddCat1MB
(
b
*
testing
.
B
)
{
benchmarkAddCat
(
1
*
MB
,
routing
,
b
)
}
func
BenchmarkRoutingSlowAddCat2MB
(
b
*
testing
.
B
)
{
benchmarkAddCat
(
2
*
MB
,
routing
,
b
)
}
func
BenchmarkRoutingSlowAddCat4MB
(
b
*
testing
.
B
)
{
benchmarkAddCat
(
4
*
MB
,
routing
,
b
)
}
func
BenchmarkRoutingSlowAddCat8MB
(
b
*
testing
.
B
)
{
benchmarkAddCat
(
8
*
MB
,
routing
,
b
)
}
func
BenchmarkRoutingSlowAddCat16MB
(
b
*
testing
.
B
)
{
benchmarkAddCat
(
16
*
MB
,
routing
,
b
)
}
func
BenchmarkRoutingSlowAddCat32MB
(
b
*
testing
.
B
)
{
benchmarkAddCat
(
32
*
MB
,
routing
,
b
)
}
func
BenchmarkRoutingSlowAddCat1MB
(
b
*
testing
.
B
)
{
benchmarkAddCat
(
1
*
MB
,
routing
,
b
)
}
func
BenchmarkRoutingSlowAddCat2MB
(
b
*
testing
.
B
)
{
benchmarkAddCat
(
2
*
MB
,
routing
,
b
)
}
func
BenchmarkRoutingSlowAddCat4MB
(
b
*
testing
.
B
)
{
benchmarkAddCat
(
4
*
MB
,
routing
,
b
)
}
func
BenchmarkRoutingSlowAddCat8MB
(
b
*
testing
.
B
)
{
benchmarkAddCat
(
8
*
MB
,
routing
,
b
)
}
func
BenchmarkRoutingSlowAddCat16MB
(
b
*
testing
.
B
)
{
benchmarkAddCat
(
16
*
MB
,
routing
,
b
)
}
func
BenchmarkRoutingSlowAddCat32MB
(
b
*
testing
.
B
)
{
benchmarkAddCat
(
32
*
MB
,
routing
,
b
)
}
func
BenchmarkRoutingSlowAddCat64MB
(
b
*
testing
.
B
)
{
benchmarkAddCat
(
64
*
MB
,
routing
,
b
)
}
func
BenchmarkRoutingSlowAddCat128MB
(
b
*
testing
.
B
)
{
benchmarkAddCat
(
128
*
MB
,
routing
,
b
)
}
func
BenchmarkRoutingSlowAddCat256MB
(
b
*
testing
.
B
)
{
benchmarkAddCat
(
256
*
MB
,
routing
,
b
)
}
func
BenchmarkRoutingSlowAddCat512MB
(
b
*
testing
.
B
)
{
benchmarkAddCat
(
512
*
MB
,
routing
,
b
)
}
var
network
=
Config
{}
.
Network_NYtoSF
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment