Benchmarking infrastructure for the graph algorithms in the Graph project:
Matrix loading utilities are shared with other benchmarks via the Benchmark.Common library.
- Add
*.mtxfiles to thedatadirectory at the repository root. Do not commit these files. Several small matrices are included for demo purposes only. - Configure
MatrixNamein the respective.fsfiles: list the matrices to be used for evaluation in theParamsattribute. For example:[<Params("494_bus.mtx", "arc130.mtx")>]inBFS.fs.[<Params("494_bus.mtx", "arc130.mtx")>] member val MatrixName = "" with get, set
- Ensure the matrix reader is correctly configured. In
LoadMatrix (), you can pass a boolean flag toreadMtxindicating whether the matrix should be treated as a directed or undirected graph. Current configuration: undirected for allBFS,SSSPandTriangles counting. - Run evaluation:
dotnet run -c Release --project Graph.Benchmark -- --filter '*.SSSP.*'You can use--filterto specify particular benchmarks. Use--filter '*'to run all available benchmarks. - Raw benchmarking results are saved in
BenchmarkDotNet.Artifacts/results/*.csv.