Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use test name as a hint for benchmarks (#48882)
Summary: Pull Request resolved: #48882 Changelog: [internal] The current hint for benchmarks is that the test body contains `unstable_benchmark` calls, but some benchmarks that need to use feature flags define their test bodies in a separate file, so the file containing the call to `unstable_benchmark` isn't the `-itest.js` one. This adds a new hint to opt into optimized builds that uses the name of the test instead of its contents. If it contains `-benchmark` then we consider it a benchmark and do the opt in. Reviewed By: andrewdacenko Differential Revision: D68102300 fbshipit-source-id: 4c0909969f76b8a7d563959cccf686aefaef700d
- Loading branch information