mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-18 02:10:41 -07:00
16 lines
277 B
Ruby
16 lines
277 B
Ruby
# frozen_string_literal: true
|
|
|
|
Benchmarks.define('fizzbuzz_10000', Class.new do
|
|
TEMPLATE = <<~LIQUID
|
|
{% for i in (1..10000) %}{{ i }}
|
|
{% endfor %}
|
|
LIQUID
|
|
|
|
def compile
|
|
@parsed = Liquid::Template.parse(TEMPLATE)
|
|
end
|
|
|
|
def render
|
|
@parsed.render
|
|
end
|
|
end.new) |