-
Notifications
You must be signed in to change notification settings - Fork 478
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: add support to customize the supported benchmark kinds
Summary: Currently, CyberSecEval requires hardcoded `BenchmarkKinds` in the main run script, which has several disadvantages: 1. If we have an experimental new benchmark kind, we cannot land the changes unless we release its kind to the open-source file. 2. It introduces an extra Enum class. This diff proposes a few changes: 1. Remove the usage of `BenchmarkKind`. 2. Instantiate all benchmarks in the same fashion, so they are not required to implement different logic in the main run script. There is no change in logic for any benchmark, while we are being more compatible with future benchmark kinds. Reviewed By: csahana95 Differential Revision: D53394820 fbshipit-source-id: db157c841ad9fb8616f85ee0edb8649e1a415615
- Loading branch information
1 parent
b265f6f
commit d2698fb
Showing
4 changed files
with
103 additions
and
71 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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