EEL — benchmark-results

Optimization measurements

Local measurement on macOS, Rakudo/RakuAST, with one warm-up and median of seven repetitions. These synthetic microbenchmarks compare execution strategies within the matcher; their results are not guarantees for other machines or loads.

Commands:

raku -Ilib tools/benchmark-optimizations.raku --size=100 --repeats=7 --rounds=10
raku -Ilib tools/benchmark-optimizations.raku --size=1000 --repeats=7 --rounds=5
raku -Ilib tools/benchmark-optimizations.raku --size=10000 --repeats=7 --rounds=5 --only=anchor
raku -Ilib tools/benchmark-optimizations.raku --size=10000 --repeats=7 --rounds=5 --only=interval

Times below are medians per batch, in milliseconds. The search batches have 10 queries with size 100 and 5 with size 1,000/10,000. Buffer measures a full load. Forks use, respectively, 10 or 5 A/B/D sequences, with eight branches. Absolute times must not be compared across rows of different sizes.

SizeScenarioOptimized (ms)Baseline (ms)Baseline/optimized ratio
100anchor1.8294.0762.23×
100interval1.7147.2544.23×
100overlap8.6488.5820.99×
100opaque3.0743.1481.02×
100buffer0.7397.0219.50×
100starters5.2299.1491.75×
100forks124.252174.9171.41×
100retained4.594173.48737.76×
1000anchor1.07921.65820.08×
1000interval1.02640.04939.03×
1000overlap47.69247.2580.99×
1000opaque16.73316.8001.00×
1000buffer12.898986.24976.46×
1000starters2.73633.30412.17×
1000forks68.66390.7271.32×
1000retained2.368857.074361.95×
10000anchor0.964199.713207.26×
10000interval1.098398.905363.44×

The search baselines scan the subscriptions through the same matcher; the buffer baseline re-sorts the queue at every arrival. Starters compare against evaluating every starter path. Forks disable the safe sharing of definitions. Retained results compare against reconsidering all results at every round, keeping the same priority rules.

Structural results verified in the tests:

  • One bucket visit to find an ID among 1,000/10,000 waits of the same type.

  • One interval node per conjunction/field represents both bounds.

  • No starter evaluation on inputs irrelevant to 100 definitions.

  • No rematerialization of safe frames; mutable containers are still copied.

  • No reconsideration of held results in unaffected groups.

  • Transition from index to scan and selectivity recovery through probes.

Broad loads are not sublinear: if every match needs to advance, the work remains proportional to the number of matches. Fallbacks, hysteresis and differential tests preserve the matcher's semantics. The values are not temporal asserts in CI. The quadratic case of buffer sorting and the initialization of thousands of classes make some size-10,000 scenarios expensive; only the selective searches were run at that scale.

EEL v0.3

Recognize correlated event streams with RakuAST patterns, reactive Supplies and a log-processing CLI

Authors

  • Fernando Correa de Oliveira

License

Artistic-2.0

Dependencies

JSON::Fast

Test Dependencies

Provides

  • EEL
  • EEL::Absence
  • EEL::Assertion
  • EEL::CLI
  • EEL::Clock
  • EEL::Condition
  • EEL::Continuation
  • EEL::DeadlineQueue
  • EEL::Definition
  • EEL::Input
  • EEL::InputQueue
  • EEL::IntervalIndex
  • EEL::MemoryStorage
  • EEL::Metadata
  • EEL::Query
  • EEL::Reemit
  • EEL::RetainedStore
  • EEL::Runner
  • EEL::SearchIndex
  • EEL::Slang
  • EEL::State
  • EEL::SupplyMatch
  • Event
  • MetamodelX::Event

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite — the markup and publishing tools behind this site.