Skip to content

Commit 0ef4868

Browse files
authored
Add BMSSP 1000x benchmark report to README
Added BMSSP 1000x report with benchmark results for various implementations. Signed-off-by: 0xrinegade <[email protected]>
1 parent 460fdc9 commit 0ef4868

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,33 @@ Languages currently wired in this repo: Rust, C, C++, Nim, Crystal, Kotlin (JAR)
66

77
## Benchmark snapshot
88

9+
# BMSSP 1000x Report
10+
11+
Environment:
12+
- Host: Linux/6.11.0-1018-azure (x86_64)
13+
- CPU cores: 4
14+
- Git commit: 460fdc9
15+
16+
<img width="600" height="400" alt="time_vs_popped" src="https://github.com/user-attachments/assets/aacfd5c0-ba3a-44af-8580-a59e78845f69" />
17+
18+
## Best rows per implementation (largest explored set)
19+
20+
| impl | lang | graph | n | m | k | B | threads | time_ns | popped | edges_scanned | heap_pushes | B_prime | mem_bytes |
21+
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
22+
| c-bmssp | C | ba | 200000 | 999995 | 16 | 400 | 1 | 1779913 | 8010 | 40045 | 8995 | 400 | 17599920 |
23+
| cpp-bmssp | C++ | ba | 200000 | 999995 | 16 | 400 | 1 | 2254705 | 8374 | 41865 | 9473 | 400 | 17599920 |
24+
| kotlin-bmssp | Kotlin | ba | 200000 | 1999958 | 16 | 400 | 1 | 282058140 | 200000 | 1999958 | 402594 | 400 | 35199328 |
25+
| nim-bmssp | Nim | ba | 200000 | 999995 | 16 | 400 | 1 | 2143144 | 7267 | 36330 | 8252 | 400 | 17599920 |
26+
| rust-bmssp | Rust | ba | 200000 | 999995 | 16 | 400 | 1 | 2461474 | 8331 | 41650 | 9331 | 400 | 22799944 |
27+
| c-bmssp | C | grid | 102400 | 408320 | 16 | 400 | 1 | 732563 | 4878 | 19511 | 5957 | 400 | 7352320 |
28+
| cpp-bmssp | C++ | grid | 102400 | 408320 | 16 | 400 | 1 | 897503 | 4871 | 19455 | 5984 | 400 | 7352320 |
29+
| crystal-bmssp | Crystal | grid | 102400 | 408320 | 16 | 400 | 1 | 66888845 | 4741 | 18945 | 5797 | 400 | 7152652 |
30+
| elixir-bmssp | Elixir | grid | 102400 | 408320 | 16 | 400 | 1 | 431964997 | 4956 | 19775 | 6125 | 400 | 8171520 |
31+
| erlang-bmssp | Erlang | grid | 102400 | 408320 | 16 | 400 | 1 | 11623659 | 4699 | 18772 | 5748 | 400 | 8171520 |
32+
| kotlin-bmssp | Kotlin | grid | 102400 | 408320 | 16 | 400 | 1 | 34700586 | 5306 | 21202 | 6492 | 400 | 8171520 |
33+
| nim-bmssp | Nim | grid | 102400 | 408320 | 16 | 400 | 1 | 1932144 | 5051 | 20204 | 6228 | 400 | 7352320 |
34+
| rust-bmssp | Rust | grid | 102400 | 408320 | 16 | 400 | 1 | 1045159 | 5091 | 20326 | 6280 | 400 | 10014744 |
35+
936
| impl | lang | graph | n | m | k | B | seed | threads | time_ns | popped | edges_scanned | heap_pushes | B_prime | mem_bytes |
1037
|---------------|--------|-------|------|------|---|----|------|---------|---------|--------|---------------|-------------|---------|-----------|
1138
| rust-bmssp | Rust | grid | 2500 | 9800 | 4 | 50 | 1 | 1 | 741251 | 868 | 3423 | 1047 | 50 | 241824 |
@@ -15,6 +42,9 @@ Languages currently wired in this repo: Rust, C, C++, Nim, Crystal, Kotlin (JAR)
1542
| elixir-bmssp | Elixir | grid | 2500 | 9800 | 4 | 50 | 1 | 1 | 5410039 | 870 | 3447 | 1047 | 50 | 196800 |
1643
| erlang-bmssp | Erlang | grid | 2500 | 9800 | 4 | 50 | 1 | 1 | 1155739 | 691 | 2701 | 818 | 50 | 196800 |
1744

45+
46+
47+
1848
Rust implementation of **bounded multi-source shortest paths** (multi-source Dijkstra cut off at `B`).
1949

2050
## Run

0 commit comments

Comments
 (0)