<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>thr3a</author_name>
  <author_url>https://blog.hatena.ne.jp/thr3a/</author_url>
  <blog_title>動かざることバグの如し</blog_title>
  <blog_url>https://blog.turai.work/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>いわゆるWEBサイトのベンチマークはApache Benchがいちばん有名だが、いかんせんインストールしてやらなきゃいけなくて面倒 Rubyでサクッと負荷テストしてみたかったので作ってみた 環境 ruby 2.x rest-clientを使ってる コード 10並列で計1000リクエスト実行したい場合 require 'thread' require &quot;rest-client&quot; locks = Queue.new 10.times { locks.push :lock } error_count = 0 Array.new(1000) do |i| Thread.new do lock = lo…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.turai.work%2Fentry%2F20180708%2F1531045529&quot; title=&quot;Rubyの並列処理でWEBサイトの負荷テストを実行する - 動かざることバグの如し&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-07-08 19:25:29</published>
  <title>Rubyの並列処理でWEBサイトの負荷テストを実行する</title>
  <type>rich</type>
  <url>https://blog.turai.work/entry/20180708/1531045529</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
