Commit 76bf999
Create a benchmark get_attr_one_obj_per_big_alloc.
The behavior is currently quadratic that shouldn't be a case.
Benchmark Time CPU Iterations
------------------------------------------------------------------------------------
get_attr_one_obj_per_big_alloc/size:100 16264 ns 16261 ns 36290
get_attr_one_obj_per_big_alloc/size:512 264089 ns 264055 ns 2615
get_attr_one_obj_per_big_alloc/size:4096 17013654 ns 17012206 ns 43
get_attr_one_obj_per_big_alloc/size:10000 93770372 ns 93755818 ns 7
PiperOrigin-RevId: 718795326
Change-Id: I0f98c7c57c70014ea0b9320a39ab5656139f0ccf1 parent 3a265ef commit 76bf999
1 file changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
269 | 285 | | |
270 | 286 | | |
271 | 287 | | |
| |||
0 commit comments