# 웹어셈블리에서 자바스크립트를 빠르게 실행하는 방법

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

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=8080](https://news.hada.io/topic?id=8080)
- GeekNews Markdown: [https://news.hada.io/topic/8080.md](https://news.hada.io/topic/8080.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2022-12-21T10:18:02+09:00
- Updated: 2022-12-21T10:18:02+09:00
- Original source: [ktseo41.github.io](https://ktseo41.github.io/blog/log/making-javascript-run-fast-on-webassembly.html)
- Points: 7
- Comments: 1

## Topic Body

- 어떻게 작동하나요? : SpiderMonkey JS VM을 WASM에서 실행. 하지만 느림  
- 그럼 대체 왜 하는 건가요?  
  - iOS(및 기타 JIT 제한 환경)에서 자바스크립트 실행  
  - 서버리스를 위한 즉각적인 콜드 스타트  
- JS 엔진이 시간을 보내는 두 영역  
  - 초기화 단계 : 애플리케이션 초기화, 엔진 초기화  
  - 런타임 단계  
- 초기화 시간을 대폭 단축시키기 : Wizer 사용   
- 다음 단계: 스루풋 개선  
  - (프로파일링 없이) AOT 컴파일된 빠른 JS  
  - 약간의 프로파일링을 추가할 수 있을지도요?  
- 당장 시작하는 방법  
  - 자바스크립트를 지원하려는 다른 플랫폼의 경우 : Wasmtime   
  - 이 접근 방식을 사용하려는 다른 언어의 경우

## Comments



### Comment 13842

- Author: spilist2
- Created: 2022-12-21T12:20:14+09:00
- Points: 3

제가 요약했던 글이 한글로 번역됐군요. https://news.hada.io/topic?id=5167
