Skip to content

Herman J. Radtke III

Proving getenv Does Not Make a Syscall

I saw this statement in an accepted answer on Stack Overflow:

Retrieving the value of an environment variable will incur a system call.


This answer surprised me as I did not think this was the case. There is an edit farther down that has links to other Stack Overflow posts saying get getenv does not make a syscall. Let us prove it ourselves.

Profiling Node.js in Production

At work, I lead a team responsible for a Node.js service that serves a lot of GraphQL queries. We recently noticed some servers in the cluster were running much slower than others. We had used 0x in the past to profile Node.js services locally. In this case, we could not identify the problem locally and needed a solution to profile Node.js in production to identify the cause of the slowdown.