Upgrade to Pro — share decks privately, control downloads, hide ads and more …

社内ISUCONを開催した話

takashabe
February 08, 2016

 社内ISUCONを開催した話

社内ISUCONリポジトリ
https://github.com/takashabe/isucon_internal

takashabe

February 08, 2016
Tweet

More Decks by takashabe

Other Decks in Technology

Transcript

  1. ֤αʔόͷ໾ׂ • webapp • 1ਓ1୆ɺڝٕऀʹ౉͞ΕΔαʔό • νϡʔχϯάର৅ͷwebαʔϏε͕Քಇ • portal •

    ϕϯνϚʔΫͷ࣮ߦɺείΞͷ֬ೝ • bench • webappαʔόʹରͯ͠ϦΫΤετΛ౤͛ͯܭଌ
  2. νϡʔχϯάϙΠϯτ • ϘτϧωοΫ͸DB • ༗ޮͳख๏ • ΫΤϦࣗମͷॻ͖׵͑ • ΫΤϦͷ౤͛ํ •

    ಛʹ᠘͸༻ҙͯ͠ͳ͍ • ۀ຿্Α͋͘ΔΑ͏ͳରԠΛߦ͑͹είΞ͕ग़Δ
  3. ฒྻ࣮ߦ def orders(): List[List[Scenario]] = { List( List(new Init), List(new

    Bootstrap), List(new Load, new Load, new Load, new Load, new Load, new LoadChecker) ) }
  4. γφϦΦ getStatus(s1, "/") match { case 200 => // Nothing

    case i: Int => { getAndCheck(s1, "/login", "LOGIN PAGE BECAUSE NOT LOGGED IN", (check) => check.isStatus(200)) postAndCheck(s1, "/login", getLoginForm(s1), "LOGIN POST WHEN LOGGED OUT", check => check.isRedirect("/")) getAndCheck(s1, "/", "SHOW INDEX AFTER LOGIN", check => check.isStatus(200)) } }