Created
December 30, 2025 18:14
-
-
Save lmmx/6644eb7edf7a40c265d5f8c2c3dac5b8 to your computer and use it in GitHub Desktop.
Blog post plot of eval reductions vs speedup on page-dewarp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import matplotlib.pyplot as plt | |
| # Data | |
| images = [ | |
| "boston_cooking_a", | |
| "boston_cooking_b", | |
| "finnish_cooking_a", | |
| "linguistics_thesis_a", | |
| "linguistics_thesis_b" | |
| ] | |
| speedup = [6.1, 8.0, 9.6, 3.7, float('inf')] | |
| eval_reduction = [101, 155, 198, 130, 289] | |
| # Plot | |
| fig, ax1 = plt.subplots(figsize=(8,5)) | |
| color1 = 'tab:blue' | |
| ax1.set_xlabel('Image') | |
| ax1.set_ylabel('Speedup (×)', color=color1) | |
| ax1.plot(images, speedup, 'o-', color=color1, label='Speedup') | |
| ax1.tick_params(axis='y', labelcolor=color1) | |
| ax2 = ax1.twinx() | |
| color2 = 'tab:red' | |
| ax2.set_ylabel('Eval Reduction (×)', color=color2) | |
| ax2.plot(images, eval_reduction, 's--', color=color2, label='Eval Reduction') | |
| ax2.tick_params(axis='y', labelcolor=color2) | |
| fig.tight_layout() | |
| plt.title("Speedup vs Eval Reduction") | |
| plt.show() |
Author
lmmx
commented
Dec 30, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment