PerfScope is a small performance-measurement tool this team inherited. Users have reported that some of the numbers it prints cannot be true. Your job is to investigate.
- Python 3.9 or newer, on Windows, macOS, or Linux. No other requirements.
- Any editor, IDE, or debugger you like. Use whatever you are fastest with.
- Any AI agent you prefer
-
Run the tool:
python main.py # macOS / Linux (or: python3 main.py) py -3 main.py # Windows -
Useful flags while exploring:
python main.py --listshows the available workloads,python main.py --helpshows everything else.--verboseprints extra detail that may or may not be useful to you.
Three oddities have been reported against this tool. For each one: reproduce it, find the root cause, explain it out loud, and fix it.
-
Watch the
[data]lines on a first run (delete thedata/folder to force a fresh download). Compare the reported download time and speed -- and the remote freshness check time on every later run -- with what your network can plausibly do. Something is not right here. -
Run the full suite, then run
python main.py --only scan_first_luxury. Compare both results with the reference outputs indocs/USAGE.md. Something is not right here. -
Compare the
mean mscolumn of the report with the[total] suite finished in ... sline and with how long the run actually felt. Something is not right here.
Each oddity has a single, small root cause. None of them require performance tuning, new dependencies, or large rewrites.
- Think out loud. We care about how you investigate at least as much as whether you finish.
- Expected effort: 10-15 minutes for each of the oddities. You may pick only 1 oddity to work on. It is fine to finish fewer than three -- depth beats speed.
- You need to understand and be able to explain your findings in your own words, no matter what AI agents you use to assist.
Good luck.