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.
- C
- C++
- C#
- Java
- JavaScript (Node.js)
- Python (PyPy3)
4 types of graphs have been created for this project:
- 10 nodes
- 100 nodes
- 200 nodes
- 300 nodes
200 nodes
Open specific language folder, go to build and execute cmd.bat file
cd java
cd build
.\cmd.bat.\testResult.ps1 $size $from $toWhere:
- $size is graph size
- $from is start node
- $to is end node
.\runAllTests.ps1 $sizeWhere:
- $size is graph size
Test results are saved to output.txt file
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