Latest Tech News

Stay updated with the latest in technology, AI, cybersecurity, and more

Filtered by: elapsed Clear Filter

OpenBSD is so fast, I had to modify the program slightly to measure itself

Here’s a little benchmark complements of Jann Horn. It’s unexpectedly slow on Linux. OpenBSD is so fast, I had to modify the program slightly to measure itself, as the time utility is missing sufficient precision to even record nonzero. All it does is create one extra thread, then both existing threads create 256 sockets. What’s so hard about that? #include <pthread.h> #include <unistd.h> #include <err.h> #include <stdio.h> #include <sys/time.h> #include <sys/socket.h> static void open_socket