httpx ãã³ãã¯ã·ã§ã³ãã¼ã«ããã§ä½¿ãå ´å㯠client = httpx.Client() ã㦠client.get() ãªã©ã使ãã¾ãããã³ãã¯ã·ã§ã³ãã¼ã«ãªãã§ä½¿ãå ´å㯠httpx.get() ãªã©ã使ãã¾ãã ãã® httpx.get() ã®ãããªåçºã§HTTPãªã¯ã¨ã¹ããå®è¡ããAPIã¯å®éã«ã¯å é¨ã§ httpx.Client() ã®ã¤ã³ã¹ã¿ã³ã¹ãçæãã¦ç ´æ£ãã¦ãã¾ããå®ã¯ãã® Client() ã®ã¤ã³ã¹ã¿ã³ã¹çæãé ãã®ã§ãã # x1.py from httpx import Client for _ in range(100): c = Client() $ hyperfine '.venv/bin/python x1.py' Benchmark 1: .venv/bin/python x1.py Time (mean ± Ï): 1.484 s ± 0.018


{{#tags}}- {{label}}
{{/tags}}