Adds another criterion benchmark, this one demonstrating the problem in #1284. That way we can evaluate potential (full or partial) fixes to #1284 by how much they improve this benchmark. Here are the current results on my machine:
Policy::from_json time: [3.3987 s 3.3995 s 3.4004 s]
Found 11 outliers among 100 measurements (11.00%)
2 (2.00%) low mild
5 (5.00%) high mild
4 (4.00%) high severe
Takes about 3.4s to execute the benchmark once, confirming the finding in #1284; this is much too long.
Issue #, if available
1284
Checklist for requesting a review
The change in this PR is (choose one, and delete the other options):
[x] A change "invisible" to users (e.g., documentation, changes to "internal" crates like cedar-policy-core, cedar-validator, etc.)
I confirm that this PR (choose one, and delete the other options):
[x] Does not update the CHANGELOG because my change does not significantly impact released code.
I confirm that cedar-spec (choose one, and delete the other options):
[x] Does not require updates because my change does not impact the Cedar formal model or DRT infrastructure.
Description of changes
Adds another criterion benchmark, this one demonstrating the problem in #1284. That way we can evaluate potential (full or partial) fixes to #1284 by how much they improve this benchmark. Here are the current results on my machine:
Takes about 3.4s to execute the benchmark once, confirming the finding in #1284; this is much too long.
Issue #, if available
1284
Checklist for requesting a review
The change in this PR is (choose one, and delete the other options):
cedar-policy-core
,cedar-validator
, etc.)I confirm that this PR (choose one, and delete the other options):
I confirm that
cedar-spec
(choose one, and delete the other options):I confirm that
docs.cedarpolicy.com
(choose one, and delete the other options):