Skip to content

Instantly share code, notes, and snippets.

@pataiji
Created January 30, 2014 02:50
Show Gist options
  • Save pataiji/8701683 to your computer and use it in GitHub Desktop.
Save pataiji/8701683 to your computer and use it in GitHub Desktop.
SESのリージョン毎のレイテンシ計測のメモ。現状はやっぱりOregonが一番。
[us-east-1]
3661 ms
3692 ms
3529 ms
3172 ms
3258 ms
3051 ms
3386 ms
2906 ms
4247 ms
3717 ms
avg. 3461.9 ms
[eu-west-1]
6725 ms
5833 ms
5439 ms
6109 ms
5055 ms
6352 ms
5648 ms
4659 ms
4600 ms
4486 ms
avg. 5490.6 ms
[us-west-2]
3738 ms
2922 ms
3095 ms
3279 ms
2986 ms
2507 ms
3364 ms
2886 ms
2653 ms
2760 ms
avg. 3019 ms
def test
puts Time.now.instance_eval { '%s.%03d' % [strftime('%H:%M:%S'), (usec / 1000.0).round] }
TestMailer.ses_region.deliver
puts Time.now.instance_eval { '%s.%03d' % [strftime('%H:%M:%S'), (usec / 1000.0).round] }
end
class TestMailer < ActionMailer::Base
def ses_region
email = 'amano@ficc.jp'
# viewはtextメールに1行の短文のみ
mail to: email, from: email, subject: 'テストメールです'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment