Skip to content

Commit

Permalink
Benchmark info in main Readme.MD (#88)
Browse files Browse the repository at this point in the history
* Rules Match function in grule rule engine

* Rules Match function in grule rule engine

* Fetch all matching rules for a fact order by salience

* Fetch all matching rules for a fact order by salience

* Fetch all matching rules for a fact order by salience

* Updated with review comments

* Updated with review comments

* Updated with review comments

* Test Grule rule engine follows logical operator precedence

* Test Grule rule engine follows logical operator precedence

* Benchmark details in main page

Co-authored-by: Ferdinand Neman <[email protected]>
  • Loading branch information
jinagamvasubabu and newm4n authored Aug 14, 2020
1 parent 5de6f01 commit ff697a1
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,22 @@ Since business rules are actually treated as data. Adjusting the rule according
Grule's Documentation now viewable in ViewDocs. [http://hyperjumptech.viewdocs.io](http://hyperjumptech.viewdocs.io/grule-rule-engine)

### Benchmark
`Loading rules into KnowledgeBase`:

* To load `100` rules into knowledgeBase it took `37549279 ns/op` (took the highest value) that is equal to `37.5ms` and (`8871417 B/op`) `8.8MB` memory per operation

* To load `1000` rules into knowledgeBase it took `211954473 ns/op` (took the highest value) that is equal to `~211ms` and `88MB` memory per operation

`Executing rules against a fact`:

* To execute a fact against 100 rules, Grule Engine took `~39917 ns/op` (took the highest value as base) that is hardly `~0.03917 ms` and `4377 B/op` which is pretty fast.

* To execute a fact against 1000 rules, Grule Engine took `~1420603 ns/op` (took the highest value as base) that is hardly `~1.420603 ms` and `137563B/op` which is also pretty fast.


You can read the [detail report here](docs/Benchmarking_en.md)

To load `100` rules into knowledgeBase it took `37549279 ns/op` (took the highest value) that is equal to `37.5ms` and (`8871417 B/op`) `8.8MB` memory per operation

To load `1000` rules into knowledgeBase it took `211954473 ns/op` (took the highest value) that is equal to `~211ms` and `88MB` memory per operation


# Tasks and Help Wanted
Expand Down

0 comments on commit ff697a1

Please sign in to comment.