Render a big template
Template contains duplicated code, to not use loops and represent a real template.
It has exaclty same features as templating small overload benchmark, by multiplying everything by 10 (10x more blocks, macros etc).
| Call | GET | |
|---|---|---|
| Template | ~ 93,700 lines, ~ 5.5 Mo | Example |
| Use a layout | Yes | Example |
| Blocks | 500 (create and fill) | Example |
| Custom functions | 1,000 create and call) | Example |
| Macros | 1,000 create and call) | Example |
| Escape strings for HTML | 5,000 (escape and echo) | Example |
| Escape strings for Javascript | 5,000 (escape and assign) | Example |
| Variables assignation | 1,000 | Example |
| Echo raw strings | 1,000 | Example |
| Echo unknowns variables | 1,000 | Example |
| Echo object methods call | 5,000 | Example |
| Templates inclusions | 500 | Example |
| Response | ~ 91,200 lines, ~ 5.3 Mo | Example |