Skip to content

feat: implement get_results() for MicroBenchRedis#45

Merged
alubbock merged 1 commit intomainfrom
fix/redis-get-results
Mar 13, 2026
Merged

feat: implement get_results() for MicroBenchRedis#45
alubbock merged 1 commit intomainfrom
fix/redis-get-results

Conversation

@alubbock
Copy link
Copy Markdown
Owner

Summary

  • MicroBenchRedis.get_results() now reads results back from the Redis list and returns a pandas DataFrame, matching the base class API
  • Previously it inherited the base get_results() which read from a StringIO that was never written to, silently returning an empty DataFrame
  • Updated README to show the simpler get_results() usage instead of the manual redis client approach

Test plan

  • test_redis_get_results — verifies basic roundtrip (write + read back)
  • test_redis_get_results_without_pandas — verifies ImportError when pandas unavailable
  • test_redis_multiple_results — verifies multiple benchmark runs are all returned

Previously MicroBenchRedis inherited get_results() from MicroBench,
which read from a StringIO that was never written to. Now it reads
results back from the Redis list and returns a pandas DataFrame,
consistent with the base class behavior.

Updated README to show the simpler get_results() usage instead of
the manual redis client approach.
@alubbock alubbock merged commit 31e4dbe into main Mar 13, 2026
20 checks passed
@alubbock alubbock deleted the fix/redis-get-results branch March 13, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant