---
title: "Performance"
description: "Terminal apps, written in TypeScript and compiled to native executables with scriptc."
canonical_url: "https://tui-sdk.dev/docs/guides/performance"
---
# Performance

A 200×60 screen on Apple Silicon, with scriptc 0.4.17, Node.js 24.22 and Node.js 26.4. Times are medians.

| | Native, with scriptc | Node.js 24 |
| --- | --- | --- |
| Start to first frame | 1.7 ms | 94 ms |
| Peak memory | 3.6 MB | 101 MB |
| Size of what runs | 1.7 MB | 123 MB |

|                                  | scriptc | Node.js 24 | Node.js 26 |
| -------------------------------- | ------- | ---------- | ---------- |
| Start to first frame             | 1.7 ms  | 94 ms      | 108 ms     |
| Draw and diff a frame, typing    | 0.13 ms | 0.16 ms    | 0.16 ms    |
| Draw and diff a frame, scrolling | 0.24 ms | 0.26 ms    | 0.26 ms    |
| Peak memory (resident)           | 3.6 MB  | 101 MB     | 99 MB      |
| Size of what runs                | 1.7 MB  | 123 MB     | 75 MB      |

Every frame is drawn from scratch and diffed. A keystroke sends 46 bytes to the terminal, and a frame where every row scrolls sends about 12 KB. scriptc draws every frame faster than Node.js, starts more than 50 times faster, and uses about a thirtieth of the memory.

Run them with `pnpm bench` and `node benchmarks/start.ts`, and time each step of a frame with `pnpm bench:parts`. Memory is the maximum resident size `/usr/bin/time -l` reports, and Node.js's size is the official executable for 24 and Homebrew's executable with `libnode` for 26.
