Path.glob vs listdir+fnmatch: Localhost LabHands-on Path.glob vs os.listdir+fnmatch.filter one-dir lab: real matches/s on *.py files, measured on Linux localhost today in this hands-on lab for SREs.1 Oct 20264 min read→
tomllib vs JSON Config Load: Localhost LabHands-on tomllib vs json.load nested config lab: real loads/s (stdlib TOML read-only), measured on Linux localhost today in this hands-on lab for SREs.1 Oct 20264 min read→
zoneinfo vs Fixed UTC Offset: Localhost LabHands-on zoneinfo.ZoneInfo vs fixed UTC offset conversions: real conv/s on many datetimes, measured on Linux localhost today in this hands-on lab for SREs.1 Oct 20264 min read→
Python dataclass replace vs Manual Copy: Which Is Faster?Hands-on dataclasses.replace vs manual copy/new-instance lab: real ops/s updating one field, measured on Linux localhost in this hands-on lab for SREs.1 Oct 20265 min read→
islice vs list Slice Windows: Localhost LabHands-on itertools.islice vs list slice window lab: real ops/s taking ranges from sequences, measured on Linux localhost in this hands-on lab for SREs.1 Oct 20264 min read→
heapq.merge vs sorted(chain): Localhost LabHands-on heapq.merge vs sorted(chain) multi-way merge: real records/s on pre-sorted lists, measured on Linux localhost today in this hands-on lab for SREs.1 Oct 20264 min read→
mmap Write vs pwrite Region: Localhost LabHands-on mmap MAP_SHARED write+msync vs pwrite region update: real MB/s with durability labels, measured on Linux localhost in this hands-on lab for SREs.1 Oct 20264 min read→
os.stat vs Path.stat vs lstat: Localhost LabHands-on os.stat vs pathlib.Path.stat vs os.lstat: real metadata stats/s on many regular files, measured on Linux localhost in this hands-on lab for SREs.1 Oct 20264 min read→
html.escape vs Manual Replace: Localhost LabA hands-on localhost lab comparing html.escape with chained str.replace for safe HTML escaping.1 Oct 20264 min read→