Uploaded July 2025 | Updated December 2026, 2 days ago
In this video we benchmark common patterns for representing errors from throwing exceptions to result types.
Original blog post with all links and code: https://hamy.xyz/blog/2025-07_csharp-errors-vs-exceptions-benchmark
CTA: Benchmark Project Files - github.com/HAMY-LABS/hamy-labs-code-examples/tree/main/csharp/2025-07_errors-vs-exceptions-benchmark
* Join Haminions to get access - https://hamy.xyz/blog/haminions
Chapters
00:00 - Intro
00:20 - Benchmark Setup
01:05 - Benchmark Results
02:25 - Result Highlights
03:55 - Benchmark Code
Links:
- 5 Reasons to Stop Throwing Exceptions (Do this for more Robust, Composable, and Performant Code) - youtube.com/watch?v=-sXFygSRsc8&ab_channel=HAMYLABS
- TypeScript - Errors as Values vs Exceptions Performance Benchmarks - youtube.com/watch?v=nuAl00ZD7zQ&ab_channel=HAMYLABS
- I Vibe-Coded a C# Library with Claude Code - Here's 6 Things I Learned - youtube.com/watch?v=sJBp1NEYgek&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 the Channel
If you liked this and would like to see more, consider becoming a HAMINIONs 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!
Additional ways to support:
* YouTube channel members get early access to videos (sometimes weeks before they go public!)
* Sponsor posts on the blog / channel: https://hamy.xyz/labs/sponsors
* Buy merch from my shop - https://shop.hamy.xyz/
In this video we benchmark common patterns for representing errors from throwing exceptions to result types.
Original blog post with all links and code: https://hamy.xyz/blog/2025-07_csharp-errors-vs-exceptions-benchmark
CTA: Benchmark Project Files - github.com/HAMY-LABS/hamy-labs-code-examples/tree/main/csharp/2025-07_errors-vs-exceptions-benchmark
* Join Haminions to get access - https://hamy.xyz/blog/haminions
Chapters
00:00 - Intro
00:20 - Benchmark Setup
01:05 - Benchmark Results
02:25 - Result Highlights
03:55 - Benchmark Code
Links:
- 5 Reasons to Stop Throwing Exceptions (Do this for more Robust, Composable, and Performant Code) - youtube.com/watch?v=-sXFygSRsc8&ab_channel=HAMYLABS
- TypeScript - Errors as Values vs Exceptions Performance Benchmarks - youtube.com/watch?v=nuAl00ZD7zQ&ab_channel=HAMYLABS
- I Vibe-Coded a C# Library with Claude Code - Here's 6 Things I Learned - youtube.com/watch?v=sJBp1NEYgek&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 the Channel
If you liked this and would like to see more, consider becoming a HAMINIONs 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!
Additional ways to support:
* YouTube channel members get early access to videos (sometimes weeks before they go public!)
* Sponsor posts on the blog / channel: https://hamy.xyz/labs/sponsors
* Buy merch from my shop - https://shop.hamy.xyz/










