Skip to content

Conversation

@AbdulRahmanAlHamali
Copy link
Contributor

@AbdulRahmanAlHamali AbdulRahmanAlHamali commented Nov 13, 2025

This PR does two things:

  1. Write tabular results of experiments, and commit those as well. They contain additional data that is sometimes very hard to see in the graphs
  2. There was a bug in the experiment helper that basically caused the processing threads to keep running even when no requests have been added by the arrival thread. This PR fixes that as well, and as a result you will see a change in the graphs where we're currently rejecting much less

@AbdulRahmanAlHamali AbdulRahmanAlHamali changed the base branch from main to pid-take-2 November 13, 2025 21:56
@AbdulRahmanAlHamali AbdulRahmanAlHamali changed the title Commit result tables Commit experiment result tables and fix bug in experiment helper Nov 13, 2025
@AbdulRahmanAlHamali AbdulRahmanAlHamali marked this pull request as ready for review November 13, 2025 22:20
puts "-" * 150
@table_outputs << "=== PID Controller State Per Second (Aggregated across threads) ==="

header = format("%-8s %-10s %-22s %-15s %-22s %-25s %-25s %-15s", "Window", "# Threads", "Err % (min-max)", "Ideal Err %", "Reject % (min-max)", "Integral (min-max)", "Derivative (min-max)", "Total Req Time")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(nit) I also realized we could probably just use CSV format here - I think it looks fairly reasonable as a github preview, and might be easier to work with.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call. I'll switch to csv format

Copy link

@Aguasvivas22 Aguasvivas22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@AbdulRahmanAlHamali AbdulRahmanAlHamali merged commit fe69b9f into pid-take-2 Nov 14, 2025
32 checks passed
@AbdulRahmanAlHamali AbdulRahmanAlHamali deleted the commit-result-tables branch November 14, 2025 18:46
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.

3 participants