Skip to content

Instantly share code, notes, and snippets.

@jasonroelofs
Created June 10, 2014 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonroelofs/c8148317ffb09e541633 to your computer and use it in GitHub Desktop.
Save jasonroelofs/c8148317ffb09e541633 to your computer and use it in GitHub Desktop.
Example profiling of liquid template
{% include 'header' %}
<h1>{{ item.title }}</h1>
{{ request.host }}
{{ item.data.body }}
<html>
<head>
<title>{{ item.title }} // {{ site.title }}</title>
</head>
<body>
include 'header' -- <root>:1 -- 0.005362
item.title -- 'header':3 -- 0.000388
site.title -- 'header':3 -- 0.000305
item.title -- <root>:2 -- 3.9e-05
request.host -- <root>:4 -- 0.000275
item.data.body -- <root>:6 -- 0.022146
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment