> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Bach builds Windows installers from one bach.toml with the bach command: bach init, bach check, bach preview, bach build. Installs are per user and need no administrator rights by default. installer.scope = "machine" installs for every user after one Windows prompt. On Windows, run setup files with Start-Process -Wait -PassThru in PowerShell, and give signtool arguments that start with the word sign.

# Benchmarks: Bach, Inno Setup, NSIS and WiX

> Install, update and removal times, file sizes and failure behavior of Bach, Inno Setup, NSIS and WiX (MSI), measured on one 355 MB Electron app.

This page compares Bach with Inno Setup, NSIS and WiX (which builds MSI) on one real app, and says what the numbers can't tell you. The scripts and raw results are in the [`bench` folder](https://github.com/usebach/bach/tree/main/bench), so you can run them yourself.

These come from one computer (Intel Core i5-12400F, 15.7 GB of RAM, SSD, Windows 11 Home with Defender on), one app and one run per setting. Treat differences as a direction, not exact figures.

## The app

An Electron app: the Electron 33.2.0 runtime plus the `node_modules` of seven well-known packages, 10,107 files and 355 MB. Version 1.1.0 changes about 300 files, adds 60 and removes 40. Every tool installed per user, silently, with simple default scripts.

## Speed

| | Bach | Inno Setup | NSIS | WiX (MSI) |
| - | -: | -: | -: | -: |
| Install (median of 3) | 18.2 s | 20.8 s | 13.7 s | 20.8 s |
| Update 1.0.0 to 1.1.0 | 2.4 s | 24.1 s | 12.5 s | 135.9 s |
| Remove | 6.8 s | 2.4 s | 2.8 s | 33.3 s |

First installs are close, because writing 10,000 files dominates; NSIS was fastest. Bach's update was much faster because it skips files that already match. The Inno Setup and NSIS scripts copy every file again.

## Build time and size

| Tool | Default build | Smallest or quickest setting |
| - | - | - |
| Bach | 106.9 MB, 121 s | 134.4 MB with `--fast`, 2.8 s |
| Inno Setup | 99.6 MB, 69 s | 87.9 MB, 97 s |
| NSIS | 129.9 MB, 35 s | 90 MB, 136 s |
| WiX (MSI) | 110.4 MB, 58 s | 102.8 MB, 82 s |

Bach's default build takes the longest and isn't the smallest; Inno Setup and NSIS with their strongest settings make smaller files. On a tiny app, Bach adds about 9.4 MB for its window, Inno Setup 1.9 MB, and NSIS and MSI almost nothing.

## When things go wrong

| | Bach | Inno Setup | NSIS | WiX (MSI) |
| - | - | - | - | - |
| A file is locked during an update | Old version intact | Mix of old and new | Mix of old and new, exit code 0 | Old version intact |
| One flipped byte in the installer | Refused | Refused | Refused | Refused |
| Killed halfway, then run again | Correct | A stray temporary file and a second uninstaller | Correct | Not tested |
| User files in the install folder after removal | Kept | Kept | Deleted | Kept |
| Old files after an update | Removed | 40 left | 40 left | Removed |
| Left in the profile after removal | Nothing | Nothing | Nothing | Nothing |

The Inno Setup and NSIS results are from simple scripts; a careful author can fix these with `[InstallDelete]` or explicit `Delete` lines. The table shows default behavior, not what's possible. MSI keeps the old version through Windows Installer's rollback, at the cost of slow updates.

## What this doesn't show

* Other apps (many small files, or a few huge ones) give different numbers.
* Features weren't scored. Inno Setup and NSIS can script far more than Bach, and MSI is what many IT departments expect.
* Bach's figures are from the release on the day of the run.

How to run it: [`bench/README.md`](https://github.com/usebach/bach/blob/main/bench/README.md). Moving from another installer: [Migrate to Bach](/docs/guides/migrate-from-another-installer.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.