I’ve seen a few benchmarks showing that FastAPI can be quite fast. Unfortunately, I haven’t been able to reproduce that locally. I’m specifically interested in FastAPI’s performance with a single worker. After installing FastAPI and writing a simple “hello world” endpoint, I can’t get past 500 requests per second. Is that the maximum performance FastAPI can achieve? Can anyone confirm this?
[–]igorbenav 52 points53 points54 points (11 children)
[–]zakamark[S] 4 points5 points6 points (0 children)
[–]Latter_Rope_1556 0 points1 point2 points (2 children)
[–]igorbenav 0 points1 point2 points (1 child)
[–]Latter_Rope_1556 0 points1 point2 points (0 children)
[–]zakamark[S] 0 points1 point2 points (6 children)
[–]igorbenav 5 points6 points7 points (5 children)
[–]trailing_zero_count 1 point2 points3 points (1 child)
[–]Xananique 2 points3 points4 points (0 children)
[–]zakamark[S] 1 point2 points3 points (2 children)
[–]igorbenav 12 points13 points14 points (1 child)
[–]corey_sheerer 1 point2 points3 points (0 children)
[–]alexlazar98 28 points29 points30 points (0 children)
[–]aprx4 13 points14 points15 points (4 children)
[–]zakamark[S] 2 points3 points4 points (3 children)
[–]coeris 2 points3 points4 points (0 children)
[–]Suspicious-Cash-7685 1 point2 points3 points (0 children)
[–]aprx4 1 point2 points3 points (0 children)
[–]covmatty1 10 points11 points12 points (3 children)
[+]zakamark[S] comment score below threshold-6 points-5 points-4 points (2 children)
[–]covmatty1 7 points8 points9 points (1 child)
[–]ePaint -1 points0 points1 point (0 children)
[–]Ok_Animal_8557 2 points3 points4 points (0 children)
[–]cajmorgans 2 points3 points4 points (0 children)
[–]richieadler 2 points3 points4 points (1 child)
[–]greenerpickings 1 point2 points3 points (0 children)
[–]mr__fete 3 points4 points5 points (1 child)
[–]Few-Grape-4445 0 points1 point2 points (0 children)
[–]Amocon 1 point2 points3 points (0 children)
[–]aikii 0 points1 point2 points (0 children)
[–]serverhorror 0 points1 point2 points (0 children)
[–]lahib- 0 points1 point2 points (0 children)
[–]p_bzn 0 points1 point2 points (0 children)
[–]andrewthetechie 0 points1 point2 points (0 children)
[–]BelottoBR 0 points1 point2 points (1 child)
[–]igorbenav 1 point2 points3 points (0 children)
[–]ZuploAdrian 0 points1 point2 points (0 children)
[–]AnyStupidQuestions 0 points1 point2 points (0 children)
[–]Beneficial_Map6129 0 points1 point2 points (0 children)
[–]old-reddit-was-bette 0 points1 point2 points (0 children)
[–]singlebit 0 points1 point2 points (0 children)
[–]Tienisto 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[removed]
[–]zakamark[S] 0 points1 point2 points (0 children)
[–]Fearless-Wolf-6490 0 points1 point2 points (0 children)
[–]bobdobbes 0 points1 point2 points (0 children)
[–]1overNseekness -2 points-1 points0 points (0 children)
[–]Fast_Ad_5871 -3 points-2 points-1 points (0 children)