Open lixiangzzz2017 opened 2 months ago
Hi, on a relatively old CPU (intel core i5-6600T), a single core can encrypt/decrypt around 250 streams (doing really only that). 400 streams/core seems to be realistic for some more modern CPU core.
A common performance issue with this lib is to build it without the optimization flag (-O2),. When not present it will increase the request on CPU by a factor 3. If your test runs only on the CPU and does not use the GPU (which seems likely) it leaves you with 4 cores running it. 100 streams/core without the -O2 on the build line is more or less expected.
Thank you. At which step should I add the flag (O2) during the build? I built it according to the instructions on the homepage.
To enable -O2 option on the compiler command line you must add
-DCMAKE_BUILD_TYPE=RelWithDebInfo
to the cmake configuration command
I've already tried to build with -O2 option, the machine can run 1200 streams now, nearly about 3 times before.Really appreciate. Why dont you guys add it into the instructions on homepage
as title. the cpu utilization will raised up to 95% the code are as below. sleep 20ms to simulate real phone
[Image]