Using Debian trixie the OS image build became pretty slow when executed on an amd64 host. Especially the Python interpreter startup was observed to be very slow:
On bookworm:
root@d6c3243fd469:/# time python3 -c "print('hello')"
hello
real 0m0.343s
user 0m0.328s
sys 0m0.017s
On trixie:
root@cf115e77533a:/# time python3 -c "print('hello')"
hello
real 0m1.213s
user 0m1.203s
sys 0m0.012s
It looks like a significant speedup can be achieved by setting the QEMU_CPU environment variable:
Using Debian trixie the OS image build became pretty slow when executed on an amd64 host. Especially the Python interpreter startup was observed to be very slow:
On bookworm:
On trixie:
It looks like a significant speedup can be achieved by setting the QEMU_CPU environment variable:
The interpreter startup will now be more than 3 times faster: