Hi. One thing I don't get in your benchmarks: in your Fastify code you are running with a schema validator, but in your Express code you are only replacing the default JSON parsing. How is that even comparable?
Benchmark program of current article does not have request body data. It has only response body data. Therefore, if your "schema validator" means a response data validation before JSON serialization, I wanna say that typia.isStringify() and typia.assertStringify() are doing it.
Otherwise, you're meaning request DTO validation, and what you want to say is "this benchmark program does not handle request DTO validation", I want to introduce below article. Although below article's benchmark program is not measuring the pure request DTO validation logic of fastify, I think it may helpful for you.
By the way, reading your comment, I think that I should enhance above linked article's benchmark program. I'll add pure-fastify component in the benchmark pogram, so that resolve your question clearly. By the enhancement, five componets would be compared:
Hi. One thing I don't get in your benchmarks: in your Fastify code you are running with a schema validator, but in your Express code you are only replacing the default JSON parsing. How is that even comparable?
Benchmark program of current article does not have request body data. It has only response body data. Therefore, if your "schema validator" means a response data validation before JSON serialization, I wanna say that
typia.isStringify()
andtypia.assertStringify()
are doing it.Otherwise, you're meaning request DTO validation, and what you want to say is "this benchmark program does not handle request DTO validation", I want to introduce below article. Although below article's benchmark program is not measuring the pure request DTO validation logic of
fastify
, I think it may helpful for you.By the way, reading your comment, I think that I should enhance above linked article's benchmark program. I'll add
pure-fastify
component in the benchmark pogram, so that resolve your question clearly. By the enhancement, five componets would be compared:github.com/samchon/nestia/tree/mas...
Benchmark result
And how is the development of the plugin for fastify going?
Plan to start at 2023-09. Sorry for delaying
github.com/samchon/schedules/blob/...
Thanks, and do you intend to support SWC?
Not possible to support SWC, because it removes every types like Babel