Skip to content

Commit

Permalink
feat: don't filter points
Browse files Browse the repository at this point in the history
  • Loading branch information
wozeparrot committed Apr 12, 2024
1 parent f515fe1 commit fcc4e0a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion tinymod/common/benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ def _update_cache(self, force:bool=False):
for file, (regex, systems, skip_count, max_count) in TRACKED_BENCHMARKS.items():
for system in systems:
points = regex_benchmark_to_points(regex, file, system, skip_count, max_count)
points = filter_points(points, None)
self.cache[(file, system)] = points

# update commit
Expand Down
4 changes: 1 addition & 3 deletions tinymod/plugins/benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import os, logging

from common.benchmarks import REPO, BENCHMARKS_DIR, TRACKED_BENCHMARKS, CachedBenchmarks, filter_points, regex_benchmark_to_points
from common.benchmarks import REPO, BENCHMARKS_DIR, TRACKED_BENCHMARKS, CachedBenchmarks

TinyMod: Client
GUILD: Guild
Expand Down Expand Up @@ -226,8 +226,6 @@ async def bm_graph(client: Client, event,
logging.info(f"graphing {benchmark} on {system} for last {last_n} runs")

points = CachedBenchmarks.cache.get((benchmark, system), [])
points = filter_points(points, last_n)

chart = points_to_graph(f"{benchmark} on {system}", [("runtime", points)])
yield InteractionResponse("", file=("chart.png", chart), message=message)

Expand Down

0 comments on commit fcc4e0a

Please sign in to comment.