TypeScript - Errors as Values vs Exceptions Performance Benchmarks @HAMYLABS
TypeScript - Errors as Values vs Exceptions Performance Benchmarks  @HAMYLABS
Uploaded May 2025 | Updated November 2026, 18 hours ago
In this video we explore when to use exceptions vs errors as values and how they compare performance wise.

Original blog post with all links and code: https://hamy.xyz/blog/2025-05_typescript-errors-vs-exceptions-benchmarks

Chapters

00:00 - Intro
03:35 - Benchmarking errors as values vs exceptions
05:15 - Errors vs Exceptions results
07:25 - Errors vs Exceptions Benchmark Code
08:15 - When to use Exceptions vs Error Values

Links:

- Types vs No Types - How Types Allow Code to Scale across Developers, Organizations, and Code Size - youtube.com/watch?v=ntNGPompHsA&ab_channel=HAMYLABS
- My 2025 Programming Language Tier List - youtube.com/watch?v=yEIvl2Nuneg&ab_channel=HAMYLABS
- Build a Simple Result type in Python - and why you should use them - youtube.com/watch?v=1P7J2wI46sg&ab_channel=HAMYLABS

About me: I'm Hamilton - a Technomancer building Simple Scalable Systems.

Connect with me:

- Website: https://hamy.xyz
- Email List: hamniverse.substack.com
- Twitter: @SIRHAMY - twitter.com/SIRHAMY
- BlueSky: https://bsky.app/profile/sirhamy.bsky.social
- Pod Cast: HAMY LABS POD - hamylabspod.buzzsprout.com

# Support

If you liked this and would like to see more, consider becoming a supporter: https://hamy.xyz/labs/haminions

Supporters get:
* Full source code access from courses / tutorials
* Exclusive discounts on products / courses

Plus you help me to keep experimenting / sharing!

For Sponsorship info: https://hamy.xyz/labs/sponsors
TypeScript - Errors as Values vs Exceptions Performance BenchmarksHow AI Killed Tailwinds Business - And How To Avoid a Similar FateWhy Indie Hackers should use HTMX for their Side ProjectsBuilding a Fullstack Rust Web App Boilerplate for Coding AgentsHow to grow fruitful side projects over time by treating them like a gardenSimple TypeScript + Node Template for Interviews - async main, web api, and testsBuild a Simple Fullstack Web App with F# + GiraffeAdvent of Code 2024 - Day 3 in F#Advent of Code 2024 - Day 4 in F#Advent of Code 2024 - Day 2 in F#Just Write RustHow I use Fathom Analytics with F# + Giraffe.ViewEngine
HAMY LABS |

TypeScript - Errors as Values vs Exceptions Performance Benchmarks

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER