- AMPの立ち位置
- 1番はやいのはハードチューニングしたサイト、それができるエンジニアのいる企業
- AMPは2番手の位置
- 遅い良くないサイトを2番手の位置まで押し上げるのが目的
- AMP単体での使い方も今後考えられるので、アメブロでは両方持っておく方針 (Pinterestとかと一緒)
- Pinterestの事例
- 150M+ MAU, 400+ engineers, 1000+ experiments
# 例1 | |
"書き込み内容" ` | |
| % { [Text.Encoding]::UTF8.GetBytes($_) } ` | |
| Set-Content -Path ".\BOMlessUTF8.txt" -Encoding Byte | |
# 例2 | |
Get-Content -Path ".\Source.txt" -Raw -Encoding Default ` | |
| % { [Text.Encoding]::UTF8.GetBytes($_) } ` | |
| Set-Content -Path ".\BOMlessUTF8.txt" -Encoding Byte |
Latency Comparison Numbers | |
-------------------------- | |
L1 cache reference/hit 1.5 ns 4 cycles | |
Floating-point add/mult/FMA operation 1.5 ns 4 cycles | |
L2 cache reference/hit 5 ns 12 ~ 17 cycles | |
Branch mispredict 6 ns 15 ~ 20 cycles | |
L3 cache hit (unshared cache line) 16 ns 42 cycles | |
L3 cache hit (shared line in another core) 25 ns 65 cycles | |
Mutex lock/unlock 25 ns | |
L3 cache hit (modified in another core) 29 ns 75 cycles |
FROM php:5-cli | |
RUN apt-get update \ | |
&& apt-get install -y \ | |
git software-properties-common python-software-properties libicu-dev zlib1g-dev curl subversion bash \ | |
&& rm -rf /var/lib/apt/lists/* \ | |
&& docker-php-ext-configure zip \ | |
&& docker-php-ext-install zip \ | |
&& docker-php-ext-configure intl \ | |
&& docker-php-ext-install intl \ |
# tunnel online | |
ngrok tcp 3306 | |
# connection | |
user=root | |
pass=techne | |
host=0.tcp.ngrok.io | |
port=16799 | |
mysql -u$user -h$host -P$port -p$pass |
import websocket | |
import thread | |
import time | |
import sys | |
port = sys.argv[1] | |
def on_message(ws, message): |
Service | SSL | status | Response Type | Allowed methods | Allowed headers |
---|
<template> | |
<file-input v-model="filename" @formData="formData"> | |
<v-btn @click.native="uploadFiles"> | |
</template> | |
<script> | |
import fileInput from './file-input.vue' | |
export default{ | |
components:{fileInput} |