Skip to content

Instantly share code, notes, and snippets.

@kpdecker
Created August 14, 2014 01:54
Show Gist options
  • Save kpdecker/2a9e43205ce86e71524d to your computer and use it in GitHub Desktop.
Save kpdecker/2a9e43205ce86e71524d to your computer and use it in GitHub Desktop.
Handlebars Compat Mode Comparison

Compat Mode

ops/msec            handlebars          compat              dust                eco                 mustache            WINNER(S)
---------------------------------------------------------------------------------------------------------------------------------
arguments           473 ±3 (7)          468 ±4 (5)          NA                  NA                  NA                  handlebars
array-each          1737 ±10 (5)        867 ±12 (3)         1172 ±7 (6)         306 ±12 (3)         349 ±6 (7)          handlebars
array-mustache      1541 ±21 (5)        847 ±8 (4)          NA                  NA                  NA                  handlebars
complex             798 ±4 (3)          284 ±2 (4)          625 ±9 (4)          209 ±8 (3)          162 ±1 (6)          handlebars
data                687 ±3 (4)          557 ±2 (4)          NA                  NA                  NA                  handlebars
depth-1             880 ±10 (5)         885 ±5 (3)          NA                  312 ±12 (4)         290 ±2 (6)          compat, handlebars
depth-2             343 ±1 (4)          330 ±1 (6)          NA                  196 ±7 (3)          109 ±1 (5)          handlebars
depth-with-match    1235 ±6 (7)         368 ±2 (5)          NA                  NA                  560 ±6 (6)          handlebars
depth-with-miss     1306 ±6 (4)         293 ±2 (4)          NA                  NA                  356 ±2 (4)          handlebars
object-mustache     3509 ±46 (5)        1628 ±13 (4)        NA                  NA                  NA                  handlebars
object              3566 ±27 (6)        1627 ±10 (3)        1252 ±16 (3)        466 ±17 (3)         635 ±2 (5)          handlebars
partial-recursion   1108 ±8 (7)         807 ±7 (4)          58 ±2 (4)           NA                  281 ±1 (4)          handlebars
partial             999 ±7 (5)          674 ±4 (3)          451 ±2 (5)          NA                  194 ±3 (3)          handlebars
paths               3829 ±20 (4)        3955 ±32 (4)        754 ±5 (3)          463 ±17 (3)         290 ±2 (7)          compat
string              16362 ±107 (5)      15424 ±135 (4)      2628 ±12 (6)        1141 ±25 (3)        6916 ±32 (6)        handlebars
subexpression       340 ±2 (5)          337 ±3 (3)          NA                  615 ±19 (3)         NA                  eco
variables           4947 ±34 (6)        4841 ±38 (4)        1122 ±6 (3)         457 ±18 (3)         803 ±6 (4)          handlebars

v2.0.0-alpha.4

ops/msec            handlebars          dust                eco                 mustache            WINNER(S)
-------------------------------------------------------------------------------------------------------------
arguments           460 ±4 (4)          NA                  NA                  NA                  handlebars
array-each          1828 ±15 (4)        1176 ±6 (4)         314 ±10 (3)         360 ±2 (5)          handlebars
array-mustache      1738 ±10 (5)        NA                  NA                  NA                  handlebars
complex             903 ±8 (7)          640 ±7 (4)          203 ±7 (3)          164 ±1 (6)          handlebars
data                715 ±3 (6)          NA                  NA                  NA                  handlebars
depth-1             518 ±6 (7)          NA                  312 ±10 (3)         282 ±2 (8)          handlebars
depth-2             150 ±1 (4)          NA                  185 ±6 (3)          103 ±0 (5)          eco
depth-with-match    1361 ±5 (4)         NA                  NA                  542 ±5 (5)          handlebars
depth-with-miss     1419 ±20 (3)        NA                  NA                  355 ±2 (5)          handlebars
object-mustache     3658 ±25 (5)        NA                  NA                  NA                  handlebars
object              3789 ±40 (6)        1214 ±16 (5)        448 ±17 (3)         641 ±4 (5)          handlebars
partial-recursion   1248 ±8 (4)         55 ±2 (4)           NA                  265 ±2 (6)          handlebars
partial             917 ±6 (7)          438 ±7 (5)          NA                  185 ±1 (3)          handlebars
paths               4232 ±38 (4)        769 ±6 (3)          459 ±14 (3)         287 ±3 (3)          handlebars
string              17737 ±143 (4)      2579 ±19 (6)        1102 ±33 (3)        6698 ±34 (5)        handlebars
subexpression       326 ±3 (3)          NA                  615 ±19 (3)         NA                  eco
variables           5042 ±34 (6)        1100 ±15 (4)        440 ±16 (3)         748 ±5 (3)          handlebars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment