If you are trying to compare the performance as a ML service, maybe you should try to compare it with other ML model serving frameworks like
https://github.com/mosecorg/mosec or
https://github.com/bentoml/BentoML. Flask/FastAPI are not built for ML services.