goos: linux
goarch: amd64
pkg: github.com/LdDl/ch
cpu: Intel(R) Core(TM) i5-10600K CPU @ 4.10GHz
BenchmarkStaticCaseShortestPath
bidirectional_ch_test.go:93: BenchmarkStaticCaseShortestPath is starting...
BenchmarkStaticCaseShortestPath/CH_shortest_path/vertices-187853-edges-366113-shortcuts-394840
BenchmarkStaticCaseShortestPath/CH_shortest_path/vertices-187853-edges-366113-shortcuts-394840-12 1051 1104207 ns/op 3455553 B/op 1031 allocs/op
PASS
ok github.com/LdDl/ch 5.649s
Old:
goos: linux
goarch: amd64
pkg: github.com/LdDl/ch
cpu: Intel(R) Core(TM) i5-10600K CPU @ 4.10GHz
BenchmarkStaticCaseShortestPath
bidirectional_ch_test.go:93: BenchmarkStaticCaseShortestPath is starting...
BenchmarkStaticCaseShortestPath/CH_shortest_path/vertices-187853-edges-366113-shortcuts-394840
BenchmarkStaticCaseShortestPath/CH_shortest_path/vertices-187853-edges-366113-shortcuts-394840-12 782 1366040 ns/op 3455542 B/op 1031 allocs/op
PASS
ok github.com/LdDl/ch 7.858s
Compare (via benchcmp):
benchmark old ns/op new ns/op delta
BenchmarkStaticCaseShortestPath/CH_shortest_path/vertices-187853-edges-366113-shortcuts-394840-12 1366040 1104207 -19.17%
benchmark old allocs new allocs delta
BenchmarkStaticCaseShortestPath/CH_shortest_path/vertices-187853-edges-366113-shortcuts-394840-12 1031 1031 +0.00%
benchmark old bytes new bytes delta
BenchmarkStaticCaseShortestPath/CH_shortest_path/vertices-187853-edges-366113-shortcuts-394840-12 3455542 3455553 +0.00%
Compare (via benchstat):
name old time/op new time/op delta
StaticCaseShortestPath/CH_shortest_path/vertices-187853-edges-366113-shortcuts-394840-12 1.37ms ± 0% 1.10ms ± 0% ~ (p=1.000 n=1+1)
name old alloc/op new alloc/op delta
StaticCaseShortestPath/CH_shortest_path/vertices-187853-edges-366113-shortcuts-394840-12 3.46MB ± 0% 3.46MB ± 0% ~ (p=1.000 n=1+1)
name old allocs/op new allocs/op delta
StaticCaseShortestPath/CH_shortest_path/vertices-187853-edges-366113-shortcuts-394840-12 1.03k ± 0% 1.03k ± 0% ~ (all equal)
goos: linux
goarch: amd64
pkg: github.com/LdDl/ch
cpu: Intel(R) Core(TM) i5-10600K CPU @ 4.10GHz
BenchmarkPrepareContracts
BenchmarkPrepareContracts-12 1 3101841094 ns/op 281313696 B/op 2579382 allocs/op
PASS
ok github.com/LdDl/ch 3.306s
Old:
goos: linux
goarch: amd64
pkg: github.com/LdDl/ch
cpu: Intel(R) Core(TM) i5-10600K CPU @ 4.10GHz
BenchmarkPrepareContracts
BenchmarkPrepareContracts-12 1 6267384213 ns/op 362381184 B/op 3744997 allocs/op
PASS
ok github.com/LdDl/ch 6.504s
Compare (via benchcmp):
benchmark old ns/op new ns/op delta
BenchmarkPrepareContracts-12 6267384213 3101841094 -50.51%
benchmark old allocs new allocs delta
BenchmarkPrepareContracts-12 3744997 2579382 -31.12%
benchmark old bytes new bytes delta
BenchmarkPrepareContracts-12 362381184 281313696 -22.37%
Compare (via benchstat):
name old time/op new time/op delta
PrepareContracts-12 6.27s ± 0% 3.10s ± 0% ~ (p=1.000 n=1+1)
name old alloc/op new alloc/op delta
PrepareContracts-12 362MB ± 0% 281MB ± 0% ~ (p=1.000 n=1+1)
name old allocs/op new allocs/op delta
PrepareContracts-12 3.74M ± 0% 2.58M ± 0% ~ (p=1.000 n=1+1)
Similar to https://github.com/project-echo/lddi-contraction-hierarchies/pull/5
Considering commits: https://github.com/project-echo/lddi-contraction-hierarchies/pull/5/commits/8f0d4b8e10d5477ece4b060a55eb26d10ac5c977 https://github.com/project-echo/lddi-contraction-hierarchies/pull/5/commits/0fc4fa5eba64fa3b3b332a5a76a4908dca883129 https://github.com/project-echo/lddi-contraction-hierarchies/pull/5/commits/f00820abfa0c6c327aa831ef592842d413a1c4d4
Mine benchmarks also (via both benchcmp and benchstat):
M-N search
New:
Old:
Compare (via benchcmp):
Compare (via benchstat):
1-N search
New:
Old:
Compare (via benchcmp):
Compare (via benchstat):
1-1 search
New:
Old:
Compare (via benchcmp):
Compare (via benchstat):
1-1 search (single b.Run(...))
New:
Old:
Compare (via benchcmp):
Compare (via benchstat):
CH Prepare
New:
Old:
Compare (via benchcmp):
Compare (via benchstat):