Skip to content

radd/dijkstra-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dijkstra-tests

Testing the performance of a programming language based on the Dijkstra's Algorithm.

Dijkstra's Algorithm is an algorithm for finding the shortest paths between two nodes in a graph. In this project, the algorithm has been modified to find shortest paths between all nodes in a graph. This provides higher CPU load, so it's easier to test language performance.

Programming languages:

  • C
  • C++
  • C#
  • Java
  • JavaScript (Node.js)
  • Python (PyPy3)

Graphs:

4 types of graphs have been created for this project:

  • 10 nodes
  • 100 nodes
  • 200 nodes
  • 300 nodes

Example:

200 nodes

See graph online

Build

Open specific language folder, go to build and execute cmd.bat file

cd java
cd build
.\cmd.bat

Run all tests with specific nodes

.\testResult.ps1 $size $from $to

Where:

  • $size is graph size
  • $from is start node
  • $to is end node

Run all tests

.\runAllTests.ps1 $size

Where:

  • $size is graph size

Output

Test results are saved to output.txt file

Example for Java:

01 June 2018 10:57:44
---------------------- J A V A ------------------------
Graf 100
313
328
313
328
312

Graf 200
4016
4141
5890
3829
4594

Graf 300
23750
24188
21532
24563
21563

About

Testing the performance of a programming language based on the Dijkstra's Algorithm.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors