Skip to content

Instantly share code, notes, and snippets.

h1 'Fruits (haml)'
table ->
thead ->
tr ->
th 'Name'
th 'Price'
th 'Stock'
tbody ->
- for fruit in @fruits
tr ->
%h1 Fruits (haml)
%table
%thead
%tr
%th Name
%th Price
%th Stock
%tbody
- for (var i = 0; i < fruits.length; i++) {
%tr
<h1>Fruits (ejs)</h1>
<table>
<thead>
<tr>
<th>Name</th>
<th>Price</th>
<th>Stock</th>
</tr>
</thead>
<tbody>
h1 Fruits (jade)
table
thead
tr
th Name
th Price
th Stock
tbody
- for (var i = 0; i < fruits.length; i++) {
tr
<h1>Fruits (eco)</h1>
<table>
<thead>
<tr>
<th>Name</th>
<th>Price</th>
<th>Stock</th>
</tr>
</thead>
<tbody>
@yamagata-kozo
yamagata-kozo / result.txt
Last active December 10, 2015 19:38
rubyの文字列検索
user system total real
Regexp: 13.720000 0.540000 14.260000 ( 15.841062)
index: 3.750000 0.140000 3.890000 ( 4.202292)
include?: 3.510000 0.130000 3.640000 ( 3.867318)
# 1 time
user system total real
S3: 0.030000 0.010000 0.040000 (0.227568)
# 100 times
user system total real
S3: 0.560000 0.050000 0.610000 (7.073952)
# 1000 times
user system total real