Skip to content

Instantly share code, notes, and snippets.

View afeish's full-sized avatar
🎯
Focusing

afeish afeish

🎯
Focusing
View GitHub Profile
@Sequoia
Sequoia / README.md
Last active November 7, 2019 04:02
Simulation to visualize event loop

Gif of the script running

Purpose

This is a little in-terminal ⚠️simulation⚠️ of blocking I/O + threads vs. non-blocking I/O + event loop. The purpose is to illustrate the different execution times visually.

Please remember it's a simulation and take it with a grain of salt. 😄

Install

  1. clone this gist: git clone https://gist.github.com/Sequoia/94d192908e05f7674423 eventloop-simulation
  2. cd eventloop-simulation