TT - Template Toolkit with non-XS stash TTX - Template Toolkit with XS stash HTE - HTML::Template::Expr HT - HTML::Template CET - CGI::Ex::Template _str - Means the module was passed a string containing the template. _compile - Means the template was cached on the file system. _mem - Means the template was cached in memory. ------------------------------------------------------------------------ From a string or scalarref tests Rate TT_str TTX_str HTE_str HT_str CET_str TextTemplate TT_str 273/s -- -8% -72% -80% -82% -83% TTX_str 296/s 9% -- -69% -78% -80% -82% HTE_str 961/s 252% 224% -- -29% -36% -40% HT_str 1346/s 393% 354% 40% -- -10% -16% CET_str 1499/s 449% 406% 56% 11% -- -7% TextTemplate 1605/s 488% 442% 67% 19% 7% -- ------------------------------------------------------------------------ Compiled and cached on the file system tests Rate TT_compile TTX_compile HT_compile CET_compile TT_compile 694/s -- -11% -62% -71% TTX_compile 775/s 12% -- -57% -67% HT_compile 1817/s 162% 134% -- -23% CET_compile 2353/s 239% 204% 30% -- ------------------------------------------------------------------------ Cached in memory tests Rate HTE_mem TT_mem HT_mem TTX_mem CET_mem HTE_mem 1374/s -- -37% -41% -57% -60% TT_mem 2167/s 58% -- -7% -31% -38% HT_mem 2340/s 70% 8% -- -26% -33% TTX_mem 3163/s 130% 46% 35% -- -9% CET_mem 3474/s 153% 60% 48% 10% -- ------------------------------------------------------------------------ All variants together Rate TT_str TTX_str TT_compile TTX_compile HTE_str HT_str HTE_mem CET_str TextTemplate HT_compile TT_mem CET_compile HT_mem TTX_mem CET_mem TT_str 285/s -- -0% -59% -64% -68% -79% -79% -80% -83% -84% -87% -88% -89% -90% -92% TTX_str 286/s 0% -- -59% -63% -68% -79% -79% -80% -83% -84% -87% -88% -88% -90% -92% TT_compile 692/s 143% 142% -- -11% -23% -49% -49% -51% -59% -62% -68% -70% -72% -76% -81% TTX_compile 782/s 175% 174% 13% -- -13% -42% -43% -45% -54% -57% -64% -67% -68% -73% -78% HTE_str 903/s 217% 216% 30% 15% -- -33% -34% -36% -47% -50% -59% -62% -64% -69% -75% HT_str 1346/s 373% 371% 94% 72% 49% -- -1% -5% -21% -26% -38% -43% -46% -54% -63% HTE_mem 1360/s 378% 376% 96% 74% 51% 1% -- -3% -20% -25% -38% -42% -45% -54% -62% CET_str 1409/s 395% 393% 104% 80% 56% 5% 4% -- -17% -22% -35% -40% -43% -52% -61% TextTemplate 1697/s 496% 494% 145% 117% 88% 26% 25% 20% -- -7% -22% -28% -32% -42% -53% HT_compile 1816/s 538% 536% 162% 132% 101% 35% 34% 29% 7% -- -17% -23% -27% -38% -50% TT_mem 2177/s 665% 662% 214% 178% 141% 62% 60% 54% 28% 20% -- -7% -12% -26% -40% CET_compile 2346/s 724% 721% 239% 200% 160% 74% 72% 66% 38% 29% 8% -- -5% -20% -35% HT_mem 2477/s 770% 767% 258% 217% 174% 84% 82% 76% 46% 36% 14% 6% -- -16% -32% TTX_mem 2943/s 934% 930% 325% 276% 226% 119% 116% 109% 73% 62% 35% 25% 19% -- -19% CET_mem 3617/s 1171% 1166% 423% 363% 301% 169% 166% 157% 113% 99% 66% 54% 46% 23% --