Skip to content

Commit

Permalink
Remove 0 match ratio scenario + fix BM runners + fix exec model
Browse files Browse the repository at this point in the history
There is no sense to measure performance of non matching rules.
To run tests from the runners you need to pass parameters implicitly
Change in kie-base executable models
  • Loading branch information
dupliaka committed Sep 20, 2023
1 parent c8ec15d commit 24479c4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import java.util.concurrent.TimeUnit;
import org.drools.benchmarks.turtle.runtime.generator.FactsGenerator;
import org.drools.benchmarks.turtle.runtime.generator.ResourceGenerator;
import org.drools.model.codegen.ExecutableModelProject;
import org.kie.api.KieBase;
import org.kie.api.KieServices;
import org.kie.api.conf.KieBaseOption;
Expand Down Expand Up @@ -81,7 +82,8 @@ public void createKBase() {
for (Resource resource : resources) {
kieHelper.addResource(resource);
}
kieBase = kieHelper.build(getKieBaseOptions());
kieBase = new KieHelper()
.build(ExecutableModelProject.class);
}

protected KieBaseOption[] getKieBaseOptions() {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public static void main(String[] args) throws IOException {
// Choose your benchmark here
// Any benchmark that extends AbstractSimpleFusionRuntimeBenchmark can be put here
final StartsStartedbyFusionBenchmark benchmark = new StartsStartedbyFusionBenchmark();
benchmark.nrOfEvents = 200000;
benchmark.createKBase();
benchmark.initFactsGenerators();
benchmark.initEventSenders();
Expand Down

0 comments on commit 24479c4

Please sign in to comment.