# Which parameters are used in the lib-benchmark.cpp benchmark?

**URL:** https://openfhe.discourse.group/t/which-parameters-are-used-in-the-lib-benchmark-cpp-benchmark/1748
**Category:** Library Questions
**Created:** [November 25, 2024, 5:18pm UTC](https://openfhe.discourse.group/t/which-parameters-are-used-in-the-lib-benchmark-cpp-benchmark/1748 "2024-11-25T17:18:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ouughs](https://avatars.discourse-cdn.com/v4/letter/o/91b2a8/32.png) [@ouughs](https://openfhe.discourse.group/u/ouughs)
#### Post date: [November 25, 2024, 5:18pm UTC](https://openfhe.discourse.group/t/which-parameters-are-used-in-the-lib-benchmark-cpp-benchmark/1748/1 "2024-11-25T17:18:51Z")

</div>

The results from  
[openfhe-development/benchmark/src/lib-benchmark.cpp at main · openfheorg/openfhe-development · GitHub](https://github.com/openfheorg/openfhe-development/blob/main/benchmark/src/lib-benchmark.cpp) show no parameters, specially no q (ciphertext modulus) or N (polynomial degree). The code is also very implicit on their initialization, and by printing I got 0 on those.

What are the default parameters, specially for q and N, for those benches?

---

<div class="post-metadata">

### Author: ![Caesar](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/caesar/32/63_2.png) [@Caesar](https://openfhe.discourse.group/u/Caesar)
#### Post date: [November 25, 2024, 6:28pm UTC](https://openfhe.discourse.group/t/which-parameters-are-used-in-the-lib-benchmark-cpp-benchmark/1748/2 "2024-11-25T18:28:26Z")

</div>

The parameters are created dynamically based on the benchmark configuration.

You can always print the crypto-context crypto parameters upon its initialization as follows:

```auto
std::cout << "crypto params: " << *cc->GetCryptoParameters() << std::endl;

```

This can be done in any of the `GenerateXXXrnsContext` functions in your linked file.

Sample output:  
`crypto params: Element Parameters: ILDCRTParams [m=131072 n=65536 q=414731212919766204489234226729464708693080006888585740790682897248463024890576066396976420391219229281504811919758483050349807929242355605948908400658270400328031475253203298894651265772170750173485753091986863584350451849534193189909189691792088236402162601357549471855468592007438169017381766313115001499214295698444494176257 ru=0 bigq=0 bigru=0] `
