Przeglądaj źródła

re-enable big model

Snej69420 4 miesięcy temu
rodzic
commit
b4a6fa7001
1 zmienionych plików z 5 dodań i 5 usunięć
  1. 5 5
      WolfSheep/PyPDEVS/benchmark_wolfsheep.py

+ 5 - 5
WolfSheep/PyPDEVS/benchmark_wolfsheep.py

@@ -49,8 +49,8 @@ if __name__ == '__main__':
     median_time = sorted(a)[n_run // 2 + n_run % 2]
     print(f"PyPDEVS WolfSheep-small Median Time for {n_run} runs (ms):", median_time * 1e3)
 
-    # print("Running Wolf Sheep Grass in a 100x100 space, with a thousand sheep and five hundred wolves")
-    # tt = timeit.Timer(f'runthemodel(42, (100, 100), 1000, 500, 0.4, 0.2, 10)', setup=setup)
-    # a = tt.repeat(n_run, 1)
-    # median_time = sorted(a)[n_run // 2 + n_run % 2]
-    # print(f"PyPDEVS WolfSheep-large Median Time for {n_run} runs (ms):", median_time * 1e3)
+    print("Running Wolf Sheep Grass in a 100x100 space, with a thousand sheep and five hundred wolves")
+    tt = timeit.Timer(f'runthemodel(42, (100, 100), 1000, 500, 0.4, 0.2, 10)', setup=setup)
+    a = tt.repeat(n_run, 1)
+    median_time = sorted(a)[n_run // 2 + n_run % 2]
+    print(f"PyPDEVS WolfSheep-large Median Time for {n_run} runs (ms):", median_time * 1e3)