-
Notifications
You must be signed in to change notification settings - Fork 0
/
bb_test.go
74 lines (68 loc) · 1.67 KB
/
bb_test.go
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
package main
import (
"testing"
"github.com/miltfra/tools/ds/graph"
)
func BenchmarkTSPBB2887(b *testing.B) {
b.StopTimer()
g := graph.FromFile("/home/miltfra/projects/example_files/graphs/wild20.txt", 1)
for n := 0; n < b.N; n++ {
b.StartTimer()
TSPBB(g.Edges, 8, 1<<28, 7)
b.StopTimer()
}
}
func BenchmarkTSPBB2888(b *testing.B) {
b.StopTimer()
g := graph.FromFile("/home/miltfra/projects/example_files/graphs/wild20.txt", 1)
for n := 0; n < b.N; n++ {
b.StartTimer()
TSPBB(g.Edges, 8, 1<<28, 8)
b.StopTimer()
}
}
func BenchmarkTSPBB28810(b *testing.B) {
b.StopTimer()
g := graph.FromFile("/home/miltfra/projects/example_files/graphs/wild20.txt", 1)
for n := 0; n < b.N; n++ {
b.StartTimer()
TSPBB(g.Edges, 8, 1<<28, 10)
b.StopTimer()
}
}
func BenchmarkTSPBB28815(b *testing.B) {
b.StopTimer()
g := graph.FromFile("/home/miltfra/projects/example_files/graphs/wild20.txt", 1)
for n := 0; n < b.N; n++ {
b.StartTimer()
TSPBB(g.Edges, 8, 1<<28, 15)
b.StopTimer()
}
}
func BenchmarkTSPBB2787(b *testing.B) {
b.StopTimer()
g := graph.FromFile("/home/miltfra/projects/example_files/graphs/wild20.txt", 1)
for n := 0; n < b.N; n++ {
b.StartTimer()
TSPBB(g.Edges, 8, 1<<27, 7)
b.StopTimer()
}
}
func BenchmarkTSPBB2687(b *testing.B) {
b.StopTimer()
g := graph.FromFile("/home/miltfra/projects/example_files/graphs/wild20.txt", 1)
for n := 0; n < b.N; n++ {
b.StartTimer()
TSPBB(g.Edges, 8, 1<<26, 7)
b.StopTimer()
}
}
func BenchmarkTSPBB2987(b *testing.B) {
b.StopTimer()
g := graph.FromFile("/home/miltfra/projects/example_files/graphs/wild20.txt", 1)
for n := 0; n < b.N; n++ {
b.StartTimer()
TSPBB(g.Edges, 8, 1<<29, 7)
b.StopTimer()
}
}