Skip to content

Conversation

@kamronbatman
Copy link
Contributor

@kamronbatman kamronbatman commented Nov 15, 2025

Summary

  • Adds conditional weak table vs direct access
| Method                      | N    | Mean         | Error      | StdDev     | Ratio | RatioSD | Rank | Allocated | Alloc Ratio |
|---------------------------- |----- |-------------:|-----------:|-----------:|------:|--------:|-----:|----------:|------------:|
| DirectProperty_Access       | 10   |     4.483 ns |  0.1189 ns |  0.1272 ns |  1.00 |    0.04 |    1 |         - |          NA |
| ConditionalWeakTable_Access | 10   |    42.630 ns |  0.4825 ns |  0.4513 ns |  9.52 |    0.28 |    2 |         - |          NA |
|                             |      |              |            |            |       |         |      |           |             |
| DirectProperty_Access       | 100  |    34.540 ns |  0.3824 ns |  0.3577 ns |  1.00 |    0.01 |    1 |         - |          NA |
| ConditionalWeakTable_Access | 100  |   420.093 ns |  3.5314 ns |  2.9489 ns | 12.16 |    0.15 |    2 |         - |          NA |
|                             |      |              |            |            |       |         |      |           |             |
| DirectProperty_Access       | 1000 |   793.459 ns |  8.3328 ns |  7.3868 ns |  1.00 |    0.01 |    1 |         - |          NA |
| ConditionalWeakTable_Access | 1000 | 5,136.609 ns | 79.7231 ns | 74.5730 ns |  6.47 |    0.11 |    2 |         - |          NA |

@kamronbatman kamronbatman force-pushed the kbatman/conditional_weak_table branch from 1bb7de5 to 73e400a Compare November 15, 2025 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants