---
# System prepended metadata

title: Integration tests benchmarks

---

# Integration tests benchmarks
* **commit**: a3dcfba9596323b4282eae5a58dc8f771da18a03
* **date**: 22/08/22


## blake2s
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|:---|---:|---:|---:|---:|
| `Cairo VM (CPython)` | 88.191 ± 1.285 | 85.054 | 90.418 | 85.50 ± 2.10 |
| `Cairo VM (PyPy)` | 15.372 ± 0.196 | 15.049 | 15.696 | 14.90 ± 0.35 |
| `cairo-rs (Rust)` | 1.031 ± 0.020 | 1.008 | 1.086 | 1.00 |

---

## Common library dict module
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|:---|---:|---:|---:|---:|
| `Cairo VM (CPython)` | 119.378 ± 1.690 | 115.865 | 121.762 | 136.68 ± 2.24 |
| `Cairo VM (PyPy)` | 24.483 ± 0.746 | 23.126 | 25.741 | 28.03 ± 0.88 |
| `cairo-rs (Rust)` | 0.873 ± 0.007 | 0.865 | 0.897 | 1.00 |

---

## Common library uint256 module
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|:---|---:|---:|---:|---:|
| `Cairo VM (CPython)` | 148.232 ± 2.666 | 142.155 | 155.246 | 124.37 ± 2.90 |
| `Cairo VM (PyPy)` | 26.474 ± 0.598 | 25.570 | 27.572 | 22.21 ± 0.60 |
| `cairo-rs (Rust)` | 1.192 ± 0.018 | 1.148 | 1.221 | 1.00 |

---

## keccak
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|:---|---:|---:|---:|---:|
| `Cairo VM (CPython)` | 90.796 ± 0.779 | 89.131 | 92.168 | 77.80 ± 0.89 |
| `Cairo VM (PyPy)` | 17.186 ± 0.358 | 16.298 | 17.589 | 14.73 ± 0.33 |
| `cairo-rs (Rust)` | 1.167 ± 0.009 | 1.155 | 1.188 | 1.00 |

---

## Common library uint256 module
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|:---|---:|---:|---:|---:|
| `Cairo VM (CPython)` | 148.232 ± 2.666 | 142.155 | 155.246 | 124.37 ± 2.90 |
| `Cairo VM (PyPy)` | 26.474 ± 0.598 | 25.570 | 27.572 | 22.21 ± 0.60 |
| `cairo-rs (Rust)` | 1.192 ± 0.018 | 1.148 | 1.221 | 1.00 |

---

## math
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|:---|---:|---:|---:|---:|
| `Cairo VM (CPython)` | 63.742 ± 0.956 | 61.340 | 65.754 | 130.05 ± 2.14 |
| `Cairo VM (PyPy)` | 12.106 ± 0.343 | 11.556 | 12.878 | 24.70 ± 0.72 |
| `cairo-rs (Rust)` | 0.490 ± 0.003 | 0.486 | 0.497 | 1.00 |

---

## math_cmp_and_pow
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|:---|---:|---:|---:|---:|
| `Cairo VM (CPython)` | 2.502 ± 0.026 | 2.444 | 2.539 | 131.84 ± 1.78 |
| `Cairo VM (PyPy)` | 3.998 ± 0.087 | 3.874 | 4.167 | 210.73 ± 4.96 |
| `cairo-rs (Rust)` | 0.019 ± 0.000 | 0.019 | 0.019 | 1.00 |

---

## memory
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|:---|---:|---:|---:|---:|
| `Cairo VM (CPython)` | 59.254 ± 0.923 | 57.678 | 61.558 | 105.15 ± 2.07 |
| `Cairo VM (PyPy)` | 10.172 ± 0.144 | 9.866 | 10.366 | 18.05 ± 0.33 |
| `cairo-rs (Rust)` | 0.564 ± 0.007 | 0.556 | 0.577 | 1.00 |

---

## operations_with_data_structures
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|:---|---:|---:|---:|---:|
| `Cairo VM (CPython)` | 239.942 ± 3.510 | 232.475 | 245.501 | 133.57 ± 2.23 |
| `Cairo VM (PyPy)` | 40.477 ± 0.746 | 39.462 | 42.577 | 22.53 ± 0.45 |
| `cairo-rs (Rust)` | 1.796 ± 0.014 | 1.763 | 1.823 | 1.00 |

---

## secp
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|:---|---:|---:|---:|---:|
| `Cairo VM (CPython)` | 94.828 ± 1.370 | 91.426 | 96.706 | 79.85 ± 1.60 |
| `Cairo VM (PyPy)` | 18.137 ± 0.464 | 17.290 | 18.800 | 15.27 ± 0.45 |
| `cairo-rs (Rust)` | 1.188 ± 0.017 | 1.157 | 1.230 | 1.00 |

---

## set
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|:---|---:|---:|---:|---:|
| `Cairo VM (CPython)` | 227.861 ± 3.843 | 221.461 | 233.506 | 1941.32 ± 39.67 |
| `Cairo VM (PyPy)` | 35.807 ± 1.147 | 34.098 | 38.374 | 305.07 ± 10.39 |
| `cairo-rs(Rust)` | 0.117 ± 0.001 | 0.116 | 0.120 | 1.00 |

---

## builtins_integration
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|:---|---:|---:|---:|---:|
| `Cairo VM (CPython)` | 37.165 ± 0.585 | 35.516 | 38.191 | 48.18 ± 0.84 |
| `Cairo VM (PyPy)` | 7.390 ± 0.113 | 7.169 | 7.633 | 9.58 ± 0.16 |
| `cairo-rs (Rust)` | 0.771 ± 0.006 | 0.765 | 0.783 | 1.00 |

---

## compare_arrays_200000
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|:---|---:|---:|---:|---:|
| `Cairo VM (CPython)` | 82.176 ± 1.343 | 78.231 | 84.482 | 96.56 ± 1.71 |
| `Cairo VM (PyPy)` | 10.928 ± 0.531 | 10.615 | 13.096 | 12.84 ± 0.63 |
| `cairo-rs(Rust)` | 0.851 ± 0.006 | 0.845 | 0.867 | 1.00 |

---

## factorial_multirun
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|:---|---:|---:|---:|---:|
| `Cairo VM (CPython)` | 26.225 ± 0.521 | 24.863 | 26.999 | 87.88 ± 2.51 |
| `Cairo VM (PyPy)` | 4.947 ± 0.082 | 4.840 | 5.108 | 16.58 ± 0.44 |
| `cairo-rs (Rust)` | 0.298 ± 0.006 | 0.290 | 0.312 | 1.00 |

---

## linear_search
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|:---|---:|---:|---:|---:|
| `Cairo VM (CPython)` | 11.549 ± 0.185 | 11.106 | 11.862 | 104.99 ± 2.81 |
| `Cairo VM (PyPy)` | 3.512 ± 0.089 | 3.325 | 3.664 | 31.93 ± 1.06 |
| `cairo-rs (Rust)` | 0.110 ± 0.002 | 0.107 | 0.116 | 1.00 |

---