Skip to content

Commit

Permalink
I guess, while we're at it
Browse files Browse the repository at this point in the history
  • Loading branch information
NewSoupVi committed Jan 1, 2025
1 parent f30fb59 commit 21f5479
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions test/benchmark/locations.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from ..general import gen_steps


def run_locations_benchmark():
import argparse
import logging
Expand All @@ -17,15 +20,6 @@ def run_locations_benchmark():
logger = logging.getLogger("Benchmark")

class BenchmarkRunner:
gen_steps: typing.Tuple[str, ...] = (
"generate_early",
"create_regions",
"create_items",
"set_rules",
"generate_basic",
"connect_entrances",
"pre_fill"
)
rule_iterations: int = 100_000

if sys.version_info >= (3, 9):
Expand Down Expand Up @@ -67,7 +61,7 @@ def main(self):
multiworld.set_options(args)

gc.collect()
for step in self.gen_steps:
for step in gen_steps:
with TimeIt(f"{game} step {step}", logger):
call_all(multiworld, step)
gc.collect()
Expand Down

0 comments on commit 21f5479

Please sign in to comment.