[Bug 2101201] Re: The performance of the rand() function degradation

2025-03-12 Thread Haixiao Yan
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:

[Bug 2101201] Re: The performance of the rand() function degradation

2025-03-12 Thread Simon Chopin
Erf, that's really an annoying bug, we should really fix it. Meanwhile, please run apport-collect 2101201 -p libc6, that ought to work. -- 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:

[Bug 2101201] Re: The performance of the rand() function degradation

2025-03-12 Thread Haixiao Yan
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

[Bug 2101201] Re: The performance of the rand() function degradation

2025-03-11 Thread Simon Chopin
Hi, I can't reproduce the issue with Focal (20.04) and Jammy (22.04) containers. Using your C code, I consistently get similar performance (around 9.5 seconds on my system). In the Jammy container I tried both the Focal binary and a freshly compiled binary, to be sure, and the perf was the same. C

[Bug 2101201] Re: The performance of the rand() function degradation

2025-03-11 Thread Haixiao Yan
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

[Bug 2101201] Re: The performance of the rand() function degradation

2025-03-11 Thread Simon Chopin
Could you please run apport-collect 2101201 on the affected system to gather some data to help diagnose the issue? -- 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 t

[Bug 2101201] Re: The performance of the rand() function degradation

2025-03-10 Thread Haixiao Yan
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

[Bug 2101201] Re: The performance of the rand() function degradation

2025-03-08 Thread Haixiao Yan
** 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

[Bug 2101201] Re: The performance of the rand() function degradation

2025-03-08 Thread Ubuntu Foundations Team Bug Bot
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people