Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 22 additions & 6 deletions docs/src/introducation/performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Note that all the time is of unit millisecond. Define `Rate = 100*(SP1 - zkMIPS)

**Fibonacci**

| n | RISC0 | ZKM | zkMIPS | SP1 | Rate |
| n | RISC0 | ZKM | zkMIPS | SP1 | Rate |
|--------|--------|--------|--------|---------|-------------------|
| 100 | 3004 | 6478 | 1947 | 5828 | 199.3323061 |
| 1000 | 5854 | 8037 | 1933 | 5728 | 196.3269529 |
Expand All @@ -47,7 +47,7 @@ Note that all the time is of unit millisecond. Define `Rate = 100*(SP1 - zkMIPS)

**sha2**

| Byte Length | RISC0 | ZKM | zkMIPS | SP1 | Rate |
| Byte Length | RISC0 | ZKM | zkMIPS | SP1 | Rate |
|-------------|--------|--------|--------|-------|-------------------|
| 32 | 5982 | 7866 | 1927 | 5931 | 207.7841204 |
| 256 | 5939 | 8318 | 1913 | 5872 | 206.9524307 |
Expand All @@ -57,31 +57,47 @@ Note that all the time is of unit millisecond. Define `Rate = 100*(SP1 - zkMIPS)

**sha3**

| Byte Length | RISC0 | ZKM | zkMIPS | SP1 | Rate |
| Byte Length | RISC0 | ZKM | zkMIPS | SP1 | Rate |
|-------------|--------|--------|--------|-------|-----------------------|
| 32 | 5934 | 7891 | 1972 | 5942 | 201.3184584 |
| 256 | 11663 | 10636 | 2267 | 5909 | 160.6528452 |
| 512 | 11776 | 13015 | 2225 | 6580 | 195.7303371 |
| 1024 | 23481 | 21044 | 3283 | 7612 | 131.8611027 |
| 2048 | 47278 | 43249 | 4923 | 10087 | 104.895389 |

Proving with precompile:

| Byte Length | zkMIPS | SP1 | Rate |
|-------------|--------|-------|-----------------------|
| 32 | 646 | 980 | 51.70278638 |
| 256 | 634 | 990 | 56.15141956 |
| 512 | 731 | 993 | 35.84131327 |
| 1024 | 755 | 1034 | 36.95364238 |
| 2048 | 976 | 1257 | 28.79098361 |

**big-memory**

| Value | RISC0 | ZKM | zkMIPS | SP1 | Rate |
| Value | RISC0 | ZKM | zkMIPS | SP1 | Rate |
|-------|---------|---------|--------|--------|-----------------------|
| 5 | 191125 | 199344 | 21218 | 36927 | 74.03619568 |

**sha2-chain**

| Iterations | RISC0 | ZKM | zkMIPS | SP1 | Rate |
| Iterations | RISC0 | ZKM | zkMIPS | SP1 | Rate |
|------------|--------|---------|--------|--------|-----------------------|
| 230 | 95827 | 141451 | 8756 | 15850 | 81.01873001 |
| 460 | 155192 | 321358 | 17789 | 31799 | 78.75653494 |

**sha3-chain**

| Iterations | RISC0 | ZKM | zkMIPS | SP1 | Rate |
| Iterations | RISC0 | ZKM | zkMIPS | SP1 | Rate |
|------------|---------|----------|--------|--------|-----------------------|
| 230 | 287944 | 718678 | 36205 | 39987 | 10.44607098 |
| 460 | 574644 | 1358248 | 68488 | 68790 | 0.4409531597 |

Proving with precompile:

| Iterations | zkMIPS | SP1 | Rate |
|------------|----------|--------|------------------|
| 230 | 3491 | 4277 | 22.51503867 |
| 460 | 6471 | 7924 | 22.45402565 |
Loading