use super::*; from_examples!(DMN_3_0040); #[bench] fn _0001(b: &mut Bencher) { let ctx = context(r#"{Principal: 600000,Term: 360}"#); let invocable_name = "Boxed Context"; assert_decision(&MODEL_EVALUATOR, &MODEL_NAMESPACE, invocable_name, &ctx, r#"2878.693549432766768088520383236288"#); b.iter(|| MODEL_EVALUATOR.evaluate_invocable(&MODEL_NAMESPACE, invocable_name, &ctx)); } #[bench] fn _0002(b: &mut Bencher) { let ctx = context(r#"{Principal: 30000,Term: 60}"#); let invocable_name = "Boxed Context"; assert_decision(&MODEL_EVALUATOR, &MODEL_NAMESPACE, invocable_name, &ctx, r#"649.1175498364002934927000148859422"#); b.iter(|| MODEL_EVALUATOR.evaluate_invocable(&MODEL_NAMESPACE, invocable_name, &ctx)); } #[bench] fn _0003(b: &mut Bencher) { let ctx = context(r#"{Principal: 600000,Term: 365}"#); let invocable_name = "Boxed Context"; assert_decision(&MODEL_EVALUATOR, &MODEL_NAMESPACE, invocable_name, &ctx, r#"2858.11609989659140087141889328903"#); b.iter(|| MODEL_EVALUATOR.evaluate_invocable(&MODEL_NAMESPACE, invocable_name, &ctx)); }