Slide 11
Slide 11 text
11
ςεταΠζྨʹ͓͚Δ net/http/httptest.Server ͷϝϦοτ
goroutineϕʔεͷMediumςετͷϝϦοτ
• net/http/httptest.ServergoroutineϕʔεͷMediumςετΛ࣮ݱͰ͖Δ
• ҰൠతͳMediumςετͱൺͯߏཁૉͷཧΛGo Runtime (Scheduler) ʹͤΔ͜ͱ͕Ͱ
͖ΔͷͰʢܰྔͰʣ҆ఆͨ͠ӡ༻͕ՄೳʹͳΔ
• ʮίεύ͕ྑ͍ʯMediumςετͱݴ͑Δ
• ผϓϩηεͰ࣮ݱ͢ΔMediumςετͱൺͯɺಉҰͷGo Runtime্Ͱ࣮ߦͰ͖ΔͨΊͷ૬
ޓड͚͠ͳͲͷ࿈ܞ͕༰қʹ࣮ݱͰ͖Δ
• ςετμϒϧʢϞοΫɺελϒɺεύΠͳͲʣͷ࣮͕͍͢͠