How do I determine the optimal ring dimension?

Hi, I’m currently trying to select an appropriate ring dimension for my homomorphic encryption setup. From my understanding, higher ring dimensions lead to larger ciphertext sizes and increased computation time, but also provide stronger security—is that correct?

To evaluate this, I’m measuring the time it takes to compare ciphertexts and the resulting ciphertext sizes across different ring dimensions. Do you think this is a good approach? Or is there a better way to determine the optimal ring dimension? I’d appreciate any insights—thank you!

It is better to let the library choose the ring dimension for you. You only need to specify the multiplicative depth your computation needs, and the library will find the optimal value that satisfies both the functional and security requirements.