---
URL: "/guide/core/performance"
LLMS_URL: "/guide/core/performance.md"
---

# Clippium Benchmarks  🚀

Here you will find the benchmarks created for Clippium, which compare it with other libraries that share the same functionality.

## Statement

Although we created the benchmarks for Clippium, we must clarify that we do not agree with using a microbench as a criterion to measure whether a project is better or worse based on it. 
Speed, in many cases, is not everything and can be affected depending on the execution environment.

[The Microbenchmark Fallacy](https://sindresorhus.com/blog/micro-benchmark-fallacy).

That said, let's clarify these three points:

- Do we care about the performance of our project? **Yes**.
- Do we care about the weight of our project? **Yes**.
- Do we care about the battles to get the best *benchmark*? **NO**.

## Used libraries

| Name | Version |
|--------|---------|
| clippium | 1.0.4 |
| citty | 0.2.2 |
| commander | 14.0.3 |
| meow | 14.1.0 |
| minimist | 1.2.8 |
| mri | 1.2.0 |
| nopt | 10.0.0 |
| sade | 1.8.1 |
| tinybench | 6.0.2 |
| yargs | 18.0.0 |
| yargs-parser | 22.0.0 |

## Parser bench

These benchmarks are for the **parse** function of clippium.

| Name | Mean (ms) | Ops/sec |
|------|-----------|---------|
| clippium-parser | 0.000543 | 1841.74 |
| mri | 0.001100 | 909.45 |
| minimist | 0.003134 | 319.05 |
| nopt | 0.003852 | 259.64 |
| yargs-parser | 0.031574 | 31.67 |

## CLI bench

| Name | Mean (ms) | Ops/sec |
|------|-----------|---------|
| clippium | 0.001711 | 584.45 |
| citty | 0.002015 | 496.22 |
| clippium-with-validation | 0.011023 | 90.72 |
| commander | 0.014148 | 70.68 |
| sade | 0.018203 | 54.94 |
| meow | 0.132078 | 7.57 |
| yargs | 2.550191 | 0.39 |

## Execute

[Execute benchmarks](https://github.com/pigeonposse/clippium/tree/main/packages/bench)

## Conclusion

We can see that the performance of clippium is better than the other libraries in this benchmarks.

Of course, we recommend using the library that best suits your needs, but if we had to choose, these are the ones we would choose:

- **Clippium**: due to its simplicity, versatility, lightness, and customization
- **Yargs**: due to its long history and years of maintenance

