September 12, 2003

Benchmarking the rules engine

Miss Manners and Waltz put rule-base systems to the test

Over the years developers in the rules-management business have tried to establish a set of benchmarks that will allow the users to test various systems for speed and efficiency on different, complex problems. The two most famous tests are the Miss Manners test and the Waltz benchmark. Both of these benchmarks, and three others, can be found at infoworld.com/312 and will run on most any platform.

The Miss Manners benchmark originated about 15 years ago with OPS5 and CLIPS (C Language Integrated Production System), two programming languages for rule-based production systems. Miss Manners includes a relatively simple rule base with only eight rules and a data generator. The idea is that Miss Manners has invited 16, 32, 64, or 128 guests with various hobbies to a dinner party. She wants to seat the guests in boy-girl-boy-girl arrangement so that each guest will have someone on the left or right that has a common hobby. 

The Miss Manners test becomes increasingly complex with the addition of hobbies and guests. The original test was written to stress any rule base, but some BRMS vendors discovered a trick to beat the system: By putting a single “not” statement in one of the rules, they enabled their systems to run the test 15 or 20 times faster. (Another trick is to rearrange the data so that the rules will run faster because the benchmark is data-sensitive.) Nevertheless, if you omit the tricks, Miss Manners is a very good measure of how fast a rules-inferencing system will run on any give platform and CPU.

The Waltz benchmark is another old test, but a good one. Waltz stresses a rule-base system by checking to see how well the rules engine does pattern matching. Consisting of 32 rules and a data generator, it will analyze the lines of a two-dimensional drawing and label them as if they were edges in a three-dimensional object. The Waltz benchmark is much harder to cheat with than the Miss Manners benchmark.

Read more about software development in InfoWorld's Developer World Channel.

Close

On Twitter now

Application development

Powered by Twitter
additional resources
White Paper - How to Improve Delivery of Advanced Web Applications

White Paper

Virtual Workforce: The Key to Expanding The Business While Cutting Costs

Get the independent advice and expertise you need to support a virtual workforce.

Go inside:
The three-step approach to making a virtual workforce a reality.
The four flavors of client virtualization technologies.
The three key initiatives that solve IT challenges.
Download now »
White Paper: Successfully Secure Your Wireless LAN With Wi-Fi firewalls.

White Paper

Addressing Linux Threats Leveraging Fewer Resources

The increase in Linux popularity has increased the frequency and sophistication of malware attacks. Read this 2 page white paper now to learn how you can protect your Linux environment with real-time protection that is certified by all major Linux vendors.

Download now »
White Paper - The 2009 Handbook of Application Delivery

White Paper

The 2009 Handbook of Application Delivery

Ensuring acceptable application delivery will become even more difficult over the next few years. As a result, IT organizations need to ensure that the approach that they take to resolving the current application delivery challenges can scale to support the emerging challenges. This handbook elaborates on the key tasks associated with planning, optimization, management and control and provides decision criteria to help IT organizations choose appropriate solutions.

Download now »
White Paper - Is Your Backup System Outdated?

White Paper

Mid-range Storage Considerations

A common misconception is that mid-range storage requirements are dramatically different than that of a larger enterprise. Mid-range storage users may require less capacity, but they have similar functionality and management requirements. This ESG paper examines mid-range storage needs and reviews a new solution that adjusts size while retaining value, performance and functionality.

Download now »

Developer World Newsletter

Receive a weekly roundup about the art and science of software development.

©1994-2010 Infoworld, Inc.