Home Explore Blog CI



kubernetes

4th chunk of `content/en/blog/_posts/2016-09-00-High-Performance-Network-Policies-Kubernetes.md`
d8ea16caa7229db21cb6e61c7104a5d22d035b53493962a100000001000003eb
![](https://lh3.googleusercontent.com/2M6D3zIPSiBE1LUZ3I5oVlZtfVVGP-aK6P3Qsb_siG0Jy16zeE1pNIZGLxeRh4SLCNUKY53A0Qbcm-dwwqz6ResSLjdb1oosXywOK5oK_uU6inVWQTPtztj9cv_6JK-EESVeeoq9)





Note: .5k and 1k lines overlap at ~.8ms in the chart above



Even as a percentage of baseline performance, the impact is still very small. The table below shows that for the smallest response sizes, the worst case delay remains at 7%, or less, up to 200 policies. For the larger response sizes the delay drops to about 1%.





Response Size

|Policies | .5k | 1k | 10k | 100k | 1M |
|---|---|---|---|---|----|
| 0 | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% |
| 10 | -1.6% | -0.5% | -0.6% | -1.5% | -0.7% |
| 50 | -1.8% | -2.3% | -0.8% | -1.9% | -0.8% |
| 100 | -4.1% | -4.3% | -2.5% | -4.3% | -1.0% |
| 200 | -7.0% | -6.1% | -6.5% | -4.7% | -1.8% |



 ![](https://lh6.googleusercontent.com/Bwpuko0UBaTQrL0h9_wDtnmsa0ijk6KD82BDVtHCCMuM4zATPppHKLv9lDoWBYvTbO89nPqIIA5jLYMfdxv7O6jIwRqHg_chVvBOz0-yZ_j2YhXop5Tg2a-a86swu_tBQhEPVGH3)

Title: Network Policy Performance Impact Analysis (Percentage Delay)
Summary
This section analyzes the performance impact of network policies as a percentage of baseline performance. The chart notes that the .5k and 1k lines overlap at approximately ~.8ms. The data reveals that the worst-case delay remains at 7% or less for smaller response sizes (.5k and 1k) even with up to 200 policies. For larger response sizes (10k, 100k, 1M), the delay decreases to around 1%. A table summarizes these percentage changes in request duration for various response sizes and numbers of policies.