ianstormtaylor/typescript-runtime-type-benchmarks — explained in plain English
Analysis updated 2026-08-14 · repo last pushed 2021-01-12
Compare validation library speeds to pick the fastest one for a high-traffic API server.
Check how validation performance changes across different Node.js versions before upgrading.
Download benchmark results as CSV or JSON to analyze raw numbers in your own tools.
Review bar graphs to quickly eyeball which validators are fastest and slowest.
| ianstormtaylor/typescript-runtime-type-benchmarks | 000madz000/rfid-attendance | 00kaku/gallery-slider-block | |
|---|---|---|---|
| Language | — | TypeScript | JavaScript |
| Last pushed | 2021-01-12 | 2024-07-22 | 2021-05-19 |
| Maintenance | Dormant | Dormant | Dormant |
| Setup difficulty | easy | easy | easy |
| Complexity | 2/5 | 2/5 | 2/5 |
| Audience | developer | developer | general |
Figures from each repo's GitHub metadata at analysis time.
No special infrastructure needed, results are viewable directly in the README as charts and downloadable files.
When you build an app in TypeScript, you often receive data from external sources, API responses, user input, config files, and you need to check that the data looks the way you expect before trusting it. A whole category of libraries exists to do this kind of runtime validation, and this repo simply benchmarks them against each other so you can pick the fastest one. The project compares 19 popular validation libraries, including well-known options like zod, yup, io-ts, and superstruct. It runs a standard test: given a piece of data, how quickly can each library confirm whether it matches the expected type? If you pass a number where a string was expected, the validator should catch that. The results are broken down by Node.js version (10 through 14), so you can see how performance shifts across different runtime environments. A developer building a server or API in TypeScript would use this when deciding which validation library to adopt. If your app validates thousands of requests per second, a faster library directly translates to lower latency and lower infrastructure costs. The benchmarks also include a "sans outliers" view that removes two exceptionally fast packages (marshal and ts-json-validator) because their performance makes the rest hard to compare visually. The README doesn't go into detail about the specific test data or methodology beyond the basic type-check scenario. Results are provided as bar graphs, JSON, and CSV files, so you can eyeball the chart or dig into raw numbers. One tradeoff worth noting: the benchmarks only measure speed, not ease of use, bundle size, or developer experience, all of which matter when choosing a library for a real project.
Benchmarks 19 popular TypeScript runtime validation libraries (like zod, yup, and io-ts) against each other so you can pick the fastest one for validating incoming data in your app.
Dormant — no commits in 2+ years (last push 2021-01-12).
The license is not specified in the repository documentation, so it is unclear what permissions you have for using this code.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Don't trust strangers blindly. Verify against the repo.