Skip to content

Latest commit

 

History

History

Graph.Benchmark

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Graph Benchmarks

Benchmarking infrastructure for the graph algorithms in the Graph project:

Matrix loading utilities are shared with other benchmarks via the Benchmark.Common library.

Steps to run

  1. Add *.mtx files to the data directory at the repository root. Do not commit these files. Several small matrices are included for demo purposes only.
  2. Configure MatrixName in the respective .fs files: list the matrices to be used for evaluation in the Params attribute. For example: [<Params("494_bus.mtx", "arc130.mtx")>] in BFS.fs.
     [<Params("494_bus.mtx", "arc130.mtx")>]
     member val MatrixName = "" with get, set
  3. Ensure the matrix reader is correctly configured. In LoadMatrix (), you can pass a boolean flag to readMtx indicating whether the matrix should be treated as a directed or undirected graph. Current configuration: undirected for all BFS, SSSP and Triangles counting.
  4. Run evaluation: dotnet run -c Release --project Graph.Benchmark -- --filter '*.SSSP.*' You can use --filter to specify particular benchmarks. Use --filter '*' to run all available benchmarks.
  5. Raw benchmarking results are saved in BenchmarkDotNet.Artifacts/results/*.csv.