I did some PHP Benchmark following this online post Post linkl I created inside my Proxmox 7.4 server one VM (Qemu) and one LXC Container with same HW specification: same linux distribution, same PHP version and php config. Phoronix PHP Benchmark suite avalilable here
http://phoronix-test-suite.com/benchmark-files/phpbench-081-patched2.zip
Run with
php -n phpbench.php
Doing simple phpbench I see that LXC has 20-25% penalty in pure speed. It's a pure CPU bound benchmark and it seems that QEmu is more efficient compared to LXC in pure CPU workload.
I would like to know if anybody has a similar experience of there are any LXC settings to have better results.
http://phoronix-test-suite.com/benchmark-files/phpbench-081-patched2.zip
Run with
php -n phpbench.php
Doing simple phpbench I see that LXC has 20-25% penalty in pure speed. It's a pure CPU bound benchmark and it seems that QEmu is more efficient compared to LXC in pure CPU workload.
I would like to know if anybody has a similar experience of there are any LXC settings to have better results.