Skip to content

Run Time Comparetion

RoniPick edited this page Dec 27, 2021 · 7 revisions

Java VS Python

Computer specifications:

Edition: Windows 10 Pro

Vertion: 21H1

Processor: Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz 2.59 GHz

Installed RAM: 16.0 GB (15.9 GB usable)

System-type: 64-bit operating system, x64-based processor

Results Table in Python:

Number of Nodes/ Function Save Load shortestPath Center Tsp
1,000 Nodes 187 ms 46 ms 62 ms 30.6 sec 781 ms
10,000 Nodes 1.755 sec 374 ms 570 ms X 9.43 sec
100,000 Nodes 34.462 sec 8.841 sec 14 sec X 212.4 sec

Results Table in Java:

Number of Nodes/ Function Save Load shortestPath Center Tsp
1,000 Nodes 387 ms 205 ms 220 ms X 284 ms
10,000 Nodes 2.688 sec 544 ms 620 ms X 1.48 sec
100,000 Nodes 511.8 sec 3.486 sec 4 sec X 8 sec

X - more then 10 minuets to run.

Graph representation:

  • All the times in the graphs represented in seconds.

  • 0 = took more then 10 minutes to run.

1000 nodes

10,000 nodes

100,000 nodes

OOP Ex3

versions of the project

Clone this wiki locally