# Upgrade check: CrushFTP 11 against CrushMFT 27

Before you move a server from CrushFTP 11 to CrushMFT 27, CrushTest can show what the upgrade does to it: the same work on both, alternated so that neither side gets the better hour, with a verdict for every measure and a report to keep.

![Compare: CrushMFT 27 against CrushFTP 11, with the verdicts](Results/compare.png)

## 1. Two servers that differ only in the version

The comparison is only as fair as the two servers are alike.

- **Same hardware**, or two machines of the same kind; the same storage for the users' files.
- **The same settings and users.** A copy of the production server is best: CrushFTP 11 as it runs today, and the same copy upgraded to CrushMFT 27.
- **Nothing else on them** during the check.
- **The load machines elsewhere.** CrushTest's load machines need CPU too. On the servers' own machine they take CPU from the server and their load is counted in the server machine's CPU, which the CPU guard watches ([Safety on production](Safety.md#during-the-run)).

## 2. Add both to CrushTest

**Servers › Add a server** for each ([Servers and TLS](Servers-and-TLS.md)), with the same kind of settings on both:

- the addresses of the protocols your users use;
- the same test users and their common password (on CrushFTP 11 they must exist; on CrushMFT 27 CrushTest could also make its own, but the same users on both keep the work the same);
- the admin URL with an admin user, so the results have the server side;
- the TLS check: pin each server's certificate (**Read the certificate**).

For the exact server CPU per operation on CrushFTP 11, pair a [monitor](Load-Machines.md#a-monitor-of-the-server) on its machine as **monitor of** that server. CrushMFT 27 reports its own.

![The Agents page: load-2, and a monitor of files-v11](Load-Machines/agents.png)

## 3. Pick the work

Use a profile that looks like your users' day: **Small files**, **Logins**, **Large files**, **Mixed day**, or one of your own ([Profiles](Profiles.md)). Several checks, one profile each, say more than one big one.

Two kinds of check answer two questions:

- **How much more can it do?** A closed model (N sessions back to back) or **Capacity** lets each server go as fast as it can: the throughput changes.
- **Is the same day better for the users?** A fixed rate (the **ops** model) gives both servers the same work: the throughput stays the same, and the difference shows in the latency and the server's CPU per operation.

The pictures here use a profile of the first kind, kept light: **Upgrade check**, 5 SFTP sessions that upload, download and delete files of 4 KB, 64 KB and 1 MB, with a 100 ms pause between iterations.

## 4. Run it

On the **Run** page:

| Field | Value |
|---|---|
| Server | the CrushFTP 11 server (side A, the baseline) |
| Compare with | the CrushMFT 27 server (side B) |
| Profile | the profile you picked |
| Rounds | **4**: the fewest that can give a plain improvement or regression ([How it works](How-It-Works.md#how-runs-are-compared)) |
| Tag | something to find it by, for example `upgrade check` |

![The Run page, ready to compare files-v11 with files-v27](Running/start.png)

**Preflight**, read what it found, then **Start**. The job runs the two servers in turn, A B B A A B B A, and shows each run live ([Running a test](Running.md#while-it-runs)).

## 5. Read the verdict

When the job is done the Run page shows the verdict of B against A for each measure, and the server settings that differ between the two. **Compare** (tick the runs as A and B in **Results**) shows the same, with a bar for each change and the latency percentiles of both sides, and makes the report.

![The finished job](Running/done.png)

- **improvement** or **regression:** the change is at least 5%, and the runs of the two sides are apart beyond chance.
- **likely …:** every run of one side is beyond the other, but there were too few rounds to be sure: run more.
- **no change:** less than 5% apart.
- **inconclusive:** the runs overlap: more rounds, or quieter machines.

A run that was **client-bound** or did not finish is left out of the verdict ([Troubleshooting](Troubleshooting.md#the-run-is-client-bound)). A run that a guard stopped shows why in its details.

## 6. Keep the report

**PDF report** or **HTML report** on the Compare page makes the upgrade report: the verdict of each measure with a bar for its change, notes such as runs that were left out, the settings that differ, and how it was measured. On the command line the whole check is one command:

```
crushtest run --server files-v11 --compare files-v27 --profile "Upgrade check" --rounds 4 --tag "upgrade check" --report upgrade.pdf
```

It exits 1 when a measure regressed, so a script can stop there ([Command line](Command-Line.md)).

## After the upgrade

Run a short profile against the upgraded server after every update, and open **Trend** on one of its runs: each build is held against the builds before it, and a build that is slower twice in a row is flagged ([Trend](Results.md#trend)).

![Trend over five CrushMFT 27 builds](Results/trend.png)
