
No overhead where no behavior applies. Sub-microsecond interception where it does.
The framework resolves matching rules during compilation and generates optimized PHP. See how it performs in real benchmarks, including the cost of executing attached behaviors.
Fast where it counts, free where it doesn’t
Behaviors cost only where they are attached. The rest of your code runs as if nothing changed.
Measured numbers
Zero cost for code without behaviors and under a microsecond per call through the middleware, rounded up from the framework’s benchmarks.
See the numbersBuilt at deploy time
Weave once at deploy or image build time. Requests only include files, with no checks on the file system.
See the setupProduction guide
Warm-up at deploy time, OPcache and preloading, Docker and Kubernetes, and how to reproduce the benchmarks.
Read the guide
Measured, rounded up, reproducible
Every value is rounded up from docs/performance.md, which has the exact figures and how to reproduce them.
- overhead0for methods and properties that no behavior selects
- per call< 1 µsfor a method call through its middleware
- per call< 1 µsfor three behaviors stacked around one call
- per request< 4 msadded to a request with about 3,500 intercepted calls and property accesses
- kernel boot< 0.2 msto boot the kernel
- cold start≈ 1 msdifference to the plain app, fresh container with preloading
- to weave≈ 1 sa 2,000-file app with 4 workers
Build the cache once. Trust it on every request.
Weave at deploy time, then switch on PREBUILT_CACHE. Requests never weave, never write, and never check the filesystem.
- Weave the whole app in parallel at deploy or image build time
- PREBUILT_CACHE: zero filesystem checks per request
- Read-only file systems, Docker and Kubernetes
- OPcache preloading generated for you with --preload
# at deploy or image build timevendor/bin/aspect cache:warmup:aop public/index.php --workers=4 --preloaduse Go\Aop\Features; ApplicationAspectKernel::getInstance()->init([ 'debug' => false, 'cacheDir' => __DIR__ . '/../var/cache/aop', 'features' => Features::PREBUILT_CACHE,]);Everything else in the box
- Pure PHPNo extensions. No black boxes. Just PHP.
- Intercept anythingNo method is off limits.
- Property hooksIntercept every property read and write.
- DebuggableNo magic you can't step through.
- Pointcut languageSelect exactly the code you mean, and try it live.
- Class extensionsNew interfaces and traits for existing classes.
- Works with your stackSymfony, Laravel, Yii3 and your AI coding agent.