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.
real 0m28.753s user 0m28.750s sys 0m0.002s wrlbuild@0ebf1418845d:/mnt/meta-test/recipes-example/example/files$ cat /etc/issue Ubuntu 20.04.5 LTS \n \l ubuntu@haixiao:~/meta-test/recipes-example/example/files$ time ./mallocrandfree Running malloc-rand-free test - creating 1,000 byte buffers 2,000,000 times. real 0m46.971s user 0m46.969s sys 0m0.001s ubuntu@haixiao:~/meta-test/recipes-example/example/files$ cat /etc/issue Ubuntu 22.04.4 LTS \n \l -- 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 go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2101201/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs