Skip to content

Instantly share code, notes, and snippets.

View gn0's full-sized avatar

Gábor Nyéki gn0

View GitHub Profile
@gn0
gn0 / startup.c
Last active July 17, 2025 18:55
Primitive benchmark to measure process startup time
/* a.c, compiled to ./a */
void main() {}
/* b.c, compiled to ./b */
#include <sys/wait.h>
#include <unistd.h>
int main() {
for (size_t i = 0; i < 100 * 1000; i++) {
if (fork() == 0) {