Canonical: https://toolipedia.app/computer-performance-calculators

# Computer Performance Calculators

Work out speedup from Amdahl's and Gustafson's laws, and cache effective access time from hit ratio and access times, including a two-level cache.

Breadcrumbs: Toolipedia > Developer tools > Code and developer utilities > Computer Performance Calculators

## About Computer Performance Calculators

Adding processors does not speed up a program without limit. Amdahl's law gives the speedup for a fixed workload from the parallel fraction p and the processors N: 1 / ((1 - p) + p / N). Gustafson's law is the scaled view, (1 - p) + p x N, where the problem grows with the machine. A third calculator gives the effective memory access time of a cache from its hit ratio, cache time and memory time, and a fourth handles two cache levels. Example: p = 90 percent on 8 processors gives a speedup of 4.706, never more than 10.

## How to use Computer Performance Calculators
1. Choose Amdahl, Gustafson, cache access time or two-level cache.
2. Enter the parallel fraction and processors, or the hit ratios and access times in nanoseconds.
3. Read the result, the efficiency or the miss costs, and the table for other processor counts.

## Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.

## Also known as
- computer performance calculators
- amdahl's law calculator
- gustafson's law calculator
- cache effective access time
- average memory access time
- parallel speedup calculator

## Frequently asked questions

### What is the difference between Amdahl's law and Gustafson's law?

Amdahl keeps the problem size fixed and shows the ceiling set by the serial part. Gustafson lets the problem grow with the processors, so the serial share of the run time shrinks and the speedup stays close to N.

### Which cache access time formula should I use?

Use Tc + (1 - h) x Tm when the memory is read only after a miss, and h x Tc + (1 - h) x Tm when the cache and memory are searched together. Textbooks differ, so follow the one you are working from.

### Are these results exact for real programs?

No. They are idealized models without communication, scheduling or contention costs, so real speedups are lower. Use them to see the limits and to compare options.

### Is Computer Performance Calculators free?

Yes. Computer Performance Calculators on Toolipedia is free to use, with no sign-up and no watermark.

### Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

### Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

### Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

## Related tools

More free tools that go well with Computer Performance Calculators:
- [Web Server Access Log Parser and Summary](https://toolipedia.app/web-server-access-log-parser-and-summary)
- [HTTP Caching and Download Header Generator](https://toolipedia.app/http-caching-and-download-header-generator)
- [Computer Science Concepts Reference](https://toolipedia.app/computer-science-concepts-reference)
- [Service Worker and Web Worker Starter Generator](https://toolipedia.app/service-worker-and-web-worker-starter-generator)
- [Htaccess to Nginx Rewrite Converter](https://toolipedia.app/htaccess-to-nginx-converter)
