Public bug reported:
The performance of the rand() function on Ubuntu 22.04 has decreased by 62%
compared to Ubuntu 21.04.
Measured on Ubuntu 21.04: 28.070s
Measured on Ubuntu 22.04: 45.493s
Ubuntu 22.04:
root@ubuntu:/home/ubuntu/meta-test/recipes-example/example/files# hyperfine
./mallocran
** Package changed: ubuntu => glibc (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2101201
Title:
The performance of the rand() function degradation
To manage notifications about this bug g
run 20.04 docker on ubuntu 22.04:
wrlbuild@0ebf1418845d:/mnt/meta-test/recipes-example/example/files$ time
./mallocrandfree
Running malloc-rand-free test - creating 1,000 byte buffers 2,000,000 times.
real0m28.753s
user0m28.750s
sys 0m0.002s
wrlbuild@0ebf1418845d:/mnt/meta-test/reci
ubuntu@haixiao:~$ sudo apport-collect 2101201
Package glibc not installed and no hook available, ignoring
*** Updating problem report
No additional information collected.
Press any key to continue...
No pending crash reports. Try --help for more information.
--
You received this bug notifica
be0cfd848d9ad7378800d6302bc11467cf2b514f fix this issue.
commit be0cfd848d9ad7378800d6302bc11467cf2b514f
Author: Wilco Dijkstra
Date: Mon Mar 18 15:18:20 2024 +
stdlib: Add single-threaded fast path to rand()
Improve performance of rand() and __random() by adding a single-thre
apport information
** Tags added: apport-collected jammy
** Description changed:
The performance of the rand() function on Ubuntu 22.04 has decreased by 62%
compared to Ubuntu 21.04.
Measured on Ubuntu 21.04: 28.070s
Measured on Ubuntu 22.04: 45.493s
Ubuntu 22.04:
root@ubuntu:
apport information
** Attachment added: "ProcCpuinfoMinimal.txt"
https://bugs.launchpad.net/bugs/2101201/+attachment/5864338/+files/ProcCpuinfoMinimal.txt
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/
apport information
** Attachment added: "ProcEnviron.txt"
https://bugs.launchpad.net/bugs/2101201/+attachment/5864339/+files/ProcEnviron.txt
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2101201