News Score: Score the News, Sort the News, Rewrite the Headlines

is OpenBSD 10x faster than Linux?

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_sockets(void...

Read more at flak.tedunangst.com

© News Score  score the news, sort the news, rewrite the headlines