Skip to content

Commit fa8c1cb

Browse files
authored
Add benchmark run results (#137)
1 parent 4ceeceb commit fa8c1cb

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

benchmarks/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,20 @@ Since TSC-java is a library that interacts with a back-end service (TSP), the be
8989
In general, operation latency is a function of latency to the TSP + latency to the tenant's KMS (if key-leasing is disabled).
9090

9191
The TSP's tenant logging mechanism has some tunable limits. By default, a TSP should be able to sustain 500 ops/sec/tenant, with the ability to burst higher for a limited time. The benchmark is using a single tenant, and (depending on your machine and benchmark config) can easily be executing a few thousand ops/sec. If you run a benchmark long enough you will overwhelm the TSP. In a real application, you would scale-out the TSP at this point. See [the TSP documentation](https://ironcorelabs.com/docs/saas-shield/tenant-security-proxy/deployment/) for more details.
92+
93+
## Results
94+
95+
The following benchmarking run was done on May 7, 2024 on a MacBook Pro (2023) with an Apple M2 Max chip. It uses a locally-built TSP running with the configuration from `demo-tsp.conf`.
96+
97+
```
98+
Benchmark Mode Cnt Score Error Units
99+
IntegrationBenchmark.batchEncrypt10DocsOf100B avgt 5 844.824 ± 3.801 us/op
100+
IntegrationBenchmark.decrypt100B avgt 5 103.031 ± 1.749 us/op
101+
IntegrationBenchmark.decrypt10KB avgt 5 286.778 ± 1.356 us/op
102+
IntegrationBenchmark.decrypt1B avgt 5 101.443 ± 0.560 us/op
103+
IntegrationBenchmark.decrypt1MB avgt 5 15066.330 ± 295.535 us/op
104+
IntegrationBenchmark.encrypt100B avgt 5 103.365 ± 0.600 us/op
105+
IntegrationBenchmark.encrypt10KB avgt 5 287.138 ± 2.928 us/op
106+
IntegrationBenchmark.encrypt1B avgt 5 102.163 ± 0.403 us/op
107+
IntegrationBenchmark.encrypt1MB avgt 5 15193.096 ± 280.676 us/op
108+
```

0 commit comments

Comments
 (0)