Benchmarking setup #2366
Reference in New Issue
Block a user
Delete Branch "zachgoll/benchmarking-setup-v2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR sets up
derailed_benchmarksso that we can run benchmarks locally against various endpoints and get a nicely formatted report, by-commit printed to/tmp/[endpoint].txt. For example, a benchmark run against/budgets/jun-2025for an authenticated demo user using the "default" data fromrake demo_data:default:Note about setup: Benchmarking results may vary based on the data in the DB. The best way to benchmark is setting up a production-mirror with anonymized / scrubbed data, which is a lengthy process that we cannot provide in an OSS context. The best alternative we have is synthetic demo data, which can be generated via
rake demo_data:default. Benchmarks can still be run on this small demo family, but time/iteration will be much smaller and performance issues caused by inefficient queries running on large datasets will not show up in the results.Bug: Removed Method Causes Scenario Error
The
generate_multi_currency_data!method attempts to callgenerate_for_scenario(:multi_currency, family_names). This method, along with the entire scenario-based architecture, was removed during the refactoring of theDemo::Generatorclass, leading to aNoMethodErrorwhengenerate_multi_currency_data!is invoked.app/models/demo/generator.rb#L114-L1204fe41d44b2/app/models/demo/generator.rb (L114-L120)Fix in Cursor
Was this report helpful? Give feedback by reacting with 👍 or 👎