Skip to content

Instantly share code, notes, and snippets.

@beppu
Created February 11, 2015 20:29
Show Gist options
  • Save beppu/f0a58e8afe537ba8f92f to your computer and use it in GitHub Desktop.
Save beppu/f0a58e8afe537ba8f92f to your computer and use it in GitHub Desktop.
benchmark_template_engines
--- Starting Benchmarks --------------------------------------------------------
ETA: 30 benchmarks to run = 300 seconds minimum.
--- Template Benchmark @Wed Feb 11 12:11:15 2015 -------------------------------
HT - HTML::Template (2.95)
HTE - HTML::Template::Expr (0.07)
MoTe - Mojo::Template ()
TAHT - Template::Alloy (1.020) in HTML::Template mode
TATT - Template::Alloy (1.020) in Template::Toolkit mode
TATT_P - Template::Alloy (1.020) in Template::Toolkit mode (compile to
perl)
TATT_PS - Template::Alloy (1.020) in Template::Toolkit mode (compile to
perl, using process_simple())
TATT_S - Template::Alloy (1.020) in Template::Toolkit mode (using
process_simple())
TeMT - Text::MicroTemplate (0.20)
TeXs - Text::Xslate (3.3.3)
--- uncached_string ------------------------------------------------------------
Rate TeXs HTE MoTe TATT TeMT HT TAHT
TeXs 5.47/s -- -28% -82% -86% -87% -89% -90%
HTE 7.63/s 40% -- -75% -80% -82% -85% -86%
MoTe 31.0/s 467% 306% -- -19% -25% -38% -41%
TATT 38.2/s 598% 400% 23% -- -8% -24% -28%
TeMT 41.6/s 661% 445% 34% 9% -- -17% -21%
HT 50.3/s 820% 559% 62% 32% 21% -- -5%
TAHT 52.9/s 868% 594% 71% 39% 27% 5% --
--- uncached_disk --------------------------------------------------------------
Rate TeXs HTE MoTe HT TeMT
TeXs 4.42/s -- -44% -85% -91% -91%
HTE 7.93/s 79% -- -73% -84% -84%
MoTe 29.1/s 558% 267% -- -41% -43%
HT 49.3/s 1015% 521% 70% -- -3%
TeMT 50.9/s 1053% 542% 75% 3% --
--- disk_cache -----------------------------------------------------------------
Rate TATT_P TATT_PS HT TATT TATT_S TAHT TeXs
TATT_P 34.2/s -- -8% -15% -55% -57% -67% -87%
TATT_PS 37.2/s 9% -- -7% -51% -53% -64% -86%
HT 40.0/s 17% 7% -- -47% -49% -61% -85%
TATT 76.0/s 122% 104% 90% -- -3% -26% -71%
TATT_S 78.6/s 130% 111% 97% 3% -- -24% -70%
TAHT 103/s 202% 177% 158% 36% 31% -- -61%
TeXs 265/s 675% 611% 562% 248% 237% 156% --
--- memory_cache ---------------------------------------------------------------
Rate HTE TeMT HT TAHT
HTE 7.96/s -- -85% -87% -94%
TeMT 51.6/s 548% -- -15% -60%
HT 60.6/s 661% 18% -- -53%
TAHT 128/s 1507% 148% 111% --
--- instance_reuse -------------------------------------------------------------
Rate TATT TATT_S TATT_PS TATT_P TeMT MoTe TeXs
TATT 95.6/s -- -2% -10% -12% -97% -98% -99%
TATT_S 97.6/s 2% -- -8% -10% -97% -98% -99%
TATT_PS 107/s 12% 9% -- -1% -97% -98% -99%
TATT_P 108/s 13% 11% 2% -- -97% -98% -99%
TeMT 3154/s 3198% 3130% 2858% 2814% -- -38% -76%
MoTe 5102/s 5235% 5125% 4685% 4613% 62% -- -61%
TeXs 13140/s 13641% 13356% 12223% 12038% 317% 158% --
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment