Rex Bench

About the Tests

Rex Bench measures the execution time of JavaScript code with heavy use of Regular-Expressions. In an attempt to use real world examples, the general processing of strings and other JavaScript code execution plays a part in the execution time of the benchmark. A benchmark consisting of only regular expressions and text processed by those regular expressions would likely be easier to optimize for with those optimizations providing little benefit to real world code.

Regex DNA is a regular-expression-based solution to DNA manipulation from The Great Computer Language Shootout, contributed by Jesse Millikan. This benchmark was previously published in SunSpider. Source code: regex-dna.js.

Octane RegExp is the regular-expression benchmark test from Octane. It is a collection of regular-expressions taken from the 50 most popular web pages when Octane was written.

Basic is the lexer / parser part of the benchmark test of the same name from the ARES-6 benchmark.

Flight Planner is a newly written benchmark taken from a flight management web application. Flight Planner parses aircraft flight plans and computes distance, course and elapsed times for legs of flight plans as well as total time. It uses FAA data for airports, navigation aids and airways. The flight management app was originally written to help compete in a flying proficiency event. See Hayward Air Rally.

Flight Planner Unicode is an adaptation of Flight Planner replacing the English keywords like takeoff and climb with Russian equivalents. It also uses the /u Unicode flag for most of the Regular Expressions. All of the text processed in this benchmark is made of characters from the Basic Multilingual Plane (BMP).

More tests are in the works...

Rex Bench is a mixture of older regular expression test along with newer benchmarks.

Return to Testing