# [NodeJS] Make Express to be faster than Fastify (also NestJS)

> Clean Markdown view of GeekNews topic #8878. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=8878](https://news.hada.io/topic?id=8878)
- GeekNews Markdown: [https://news.hada.io/topic/8878.md](https://news.hada.io/topic/8878.md)
- Type: news
- Author: [samchon](https://news.hada.io/@samchon)
- Published: 2023-04-04T13:18:55+09:00
- Updated: 2023-04-04T13:18:55+09:00
- Original source: [dev.to](https://dev.to/samchon/i-made-express-faster-than-fastify-4h8g)
- Points: 8
- Comments: 3

## Topic Body

- fastify가 express보다 빠른 이유 중 하나인 fast-json-stringify  
  - fast-json-stringify:   
    - 사용자가 JSON schema 를 정의하면  
    - 전용 JSON serialization 로직 생성  
    - 통상적인 JSON.stringify() 함수보다 N배 빠름  
  - express에서 이를 모방, typia 를 이용함  
    - typia: 본인의 자작 라이브러리  
    - validation 속도 및 JSON serialization 속도가 대폭 증가  
    - JSON schema 정의 없이, TypeScript 타입 그대로 사용 가능해 더 쉬움  
  - express로 fastify 만큼의 속도 증가 확인

## Comments



### Comment 15518

- Author: moderator
- Created: 2023-04-04T21:04:49+09:00
- Points: 1

Show GN에 적합한 글이 아니어서 일반 뉴스로 이동합니다.

### Comment 15583

- Author: samchon
- Created: 2023-04-07T14:25:17+09:00
- Points: 1
- Parent comment: 15518
- Depth: 1

그렇습니다, 제가 만든 라이브러리 가지고 express 튜닝했다고 제가 쓴 글입니다 ㅋㅋ

### Comment 15524

- Author: sunrabbit
- Created: 2023-04-05T13:01:12+09:00
- Points: 1
- Parent comment: 15518
- Depth: 1

글 제보자가 삼촌이고  
dve.to 글 작성자도 삼촌이고  
개발자도 삼촌입니다 :D
