Why optimized version is slower than unoptimized?

I have very strange behavior.
I have really simple api with actix_web that return value from hashmap.
I made stress test with Jmeter on "unoptimized" version(cargo run) and it run very fast on multithreads.
But, after compiling(cargo build --release)
It run very slow compare to the "unoptimized" version.
here is the code:

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.