@@ -20,7 +20,7 @@ function fake_model(; nagents = 500, scheduler)
2020end
2121
2222function fake_model_multi (; nagents = 500 , scheduler)
23- model = ABM (Union{FakeAgent,OtherFakeAgent}; scheduler, warn = false )
23+ model = ABM (Union{FakeAgent, OtherFakeAgent}; scheduler, warn = false )
2424 for i in 1 : nagents
2525 if i % 2 == 0
2626 add_agent! (FakeAgent (i, 1 ), model)
@@ -42,7 +42,10 @@ for (model, name) in [
4242 (fake_model (; scheduler = Schedulers. partially (0.7 )), " partially" ),
4343 (fake_model (; scheduler = Schedulers. Partially (0.7 )), " Partially" ),
4444 (fake_model_multi (; scheduler = Schedulers. by_type (true , true )), " by_type" ),
45- (fake_model_multi (; scheduler = Schedulers. ByType (true , true , Union{FakeAgent,OtherFakeAgent})), " ByType" )
45+ (fake_model_multi (;
46+ scheduler = Schedulers. ByType (true , true ,
47+ Union{FakeAgent, OtherFakeAgent})),
48+ " ByType" ),
4649]
4750 SUITE[name] = @benchmarkable Agents. schedule ($ model)
4851end
@@ -55,12 +58,18 @@ for (model, name) in [
5558 (fake_model (; nagents = 800000 , scheduler = Schedulers. ByID ()), " ByID" ),
5659 (fake_model (; nagents = 800000 , scheduler = Schedulers. randomly), " randomly" ),
5760 (fake_model (; nagents = 800000 , scheduler = Schedulers. Randomly ()), " Randomly" ),
58- (fake_model (; nagents = 800000 , scheduler = Schedulers. by_property (:group )), " by_property" ),
59- (fake_model (; nagents = 800000 , scheduler = Schedulers. ByProperty (:group )), " ByProperty" ),
61+ (fake_model (; nagents = 800000 , scheduler = Schedulers. by_property (:group )),
62+ " by_property" ),
63+ (fake_model (; nagents = 800000 , scheduler = Schedulers. ByProperty (:group )),
64+ " ByProperty" ),
6065 (fake_model (; nagents = 800000 , scheduler = Schedulers. partially (0.7 )), " partially" ),
6166 (fake_model (; nagents = 800000 , scheduler = Schedulers. Partially (0.7 )), " Partially" ),
62- (fake_model_multi (; nagents = 800000 , scheduler = Schedulers. by_type (true , true )), " by_type" ),
63- (fake_model_multi (; nagents = 800000 , scheduler = Schedulers. ByType (true , true , Union{FakeAgent,OtherFakeAgent})), " ByType" )
67+ (fake_model_multi (; nagents = 800000 , scheduler = Schedulers. by_type (true , true )),
68+ " by_type" ),
69+ (fake_model_multi (; nagents = 800000 ,
70+ scheduler = Schedulers. ByType (true , true ,
71+ Union{FakeAgent, OtherFakeAgent})),
72+ " ByType" ),
6473]
6574 SUITE[" large_model" ][name] = @benchmarkable Agents. schedule ($ model)
6675end
@@ -77,8 +86,12 @@ for (model, name) in [
7786 (fake_model (; nagents = 50 , scheduler = Schedulers. ByProperty (:group )), " ByProperty" ),
7887 (fake_model (; nagents = 50 , scheduler = Schedulers. partially (0.7 )), " partially" ),
7988 (fake_model (; nagents = 50 , scheduler = Schedulers. Partially (0.7 )), " Partially" ),
80- (fake_model_multi (; nagents = 50 , scheduler = Schedulers. by_type (true , true )), " by_type" ),
81- (fake_model_multi (; nagents = 50 , scheduler = Schedulers. ByType (true , true , Union{FakeAgent,OtherFakeAgent})), " ByType" )
89+ (fake_model_multi (; nagents = 50 , scheduler = Schedulers. by_type (true , true )),
90+ " by_type" ),
91+ (fake_model_multi (; nagents = 50 ,
92+ scheduler = Schedulers. ByType (true , true ,
93+ Union{FakeAgent, OtherFakeAgent})),
94+ " ByType" ),
8295]
8396 SUITE[" small_model" ][name] = @benchmarkable Agents. schedule ($ model)
8497end
0 commit comments