DiscoverThe Backend Engineering Show with Hussein NasserHow many kernel calls in NodeJS vs Bun vs Python vs native C
How many kernel calls in NodeJS vs Bun vs Python vs native C

How many kernel calls in NodeJS vs Bun vs Python vs native C

Update: 2024-09-20
Share

Description

Fundamentals of Operating Systems Course
https://oscourse.win

In this video I use strace a performance tool that measures how many system calls does a process makes. We compare a simple task of reading from a file, and we run the program in different runtimes, namely nodejs, buns , python and native C.

We discuss the cost of kernel mode switches, system calls and pe

0:00 Intro
5:00 Code Explanation
6:30 Python
9:30 NodeJS
12:30 BunJS
13:12 C
16:00 Summary


Comments 
00:00
00:00
x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

How many kernel calls in NodeJS vs Bun vs Python vs native C

How many kernel calls in NodeJS vs Bun vs Python vs native C

Hussein Nasser