Skip to content

Commit

Permalink
Merge pull request #263 from dupliaka/kie-fix
Browse files Browse the repository at this point in the history
Remove 0 match ratio scenario + fix BM runners + fix exec model
  • Loading branch information
pibizza authored Oct 5, 2023
2 parents a20d68e + fc46577 commit c83ee82
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 57 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
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;
import org.kie.api.io.KieResources;
import org.kie.api.io.Resource;
import org.kie.api.io.ResourceType;
Expand Down Expand Up @@ -81,11 +81,8 @@ public void createKBase() {
for (Resource resource : resources) {
kieHelper.addResource(resource);
}
kieBase = kieHelper.build(getKieBaseOptions());
}

protected KieBaseOption[] getKieBaseOptions() {
return new KieBaseOption[]{};
kieBase = new KieHelper()
.build(ExecutableModelProject.class);
}

@Setup
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 c83ee82

Please sign in to comment.