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 “http://127.0.0.1:5001/api/v0/files/mkdir?arg=/test/sub1/subsub1&parents=true”

write some letters to IPFS csost 32ms
time curl -v -X POST -F file=“file content to write” “http://127.0.0.1:5001/api/v0/files/write?arg=/test/sub1/bzhan.list&create=true&parents=true&truncate=true”

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?