Calling the RFC API of IPFS cost a long time

I want to use ipfs as a caching service for my HTTP server. However, during the demo test, I found that the rfc api of ipfs is relatively time-consuming. The following is my usage process:
enter ipfs daemon to start ipfs

create directory cost 28ms
time curl -v -X POST “

write some letters to IPFS csost 32ms
time curl -v -X POST -F file=“file content to write” “

write 3MB data to IPFS csost 150ms

Is the time-consuming problem caused by the demo, or is ipfs not suitable as a cache service for http servers?