Skip to content

Instantly share code, notes, and snippets.

View s3_test.rb
# 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
@yamagata-kozo
yamagata-kozo / result.txt
Last active Dec 10, 2015
rubyの文字列検索
View result.txt
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)
View index.eco
<h1>Fruits (eco)</h1>
<table>
<thead>
<tr>
<th>Name</th>
<th>Price</th>
<th>Stock</th>
</tr>
</thead>
<tbody>
View index.jade
h1 Fruits (jade)
table
thead
tr
th Name
th Price
th Stock
tbody
- for (var i = 0; i < fruits.length; i++) {
tr
View index.ejs
<h1>Fruits (ejs)</h1>
<table>
<thead>
<tr>
<th>Name</th>
<th>Price</th>
<th>Stock</th>
</tr>
</thead>
<tbody>
View index.haml
%h1 Fruits (haml)
%table
%thead
%tr
%th Name
%th Price
%th Stock
%tbody
- for (var i = 0; i < fruits.length; i++) {
%tr
View index.coffeekup
h1 'Fruits (haml)'
table ->
thead ->
tr ->
th 'Name'
th 'Price'
th 'Stock'
tbody ->
- for fruit in @fruits
tr ->