Commit Graph

9 Commits

Author SHA1 Message Date
Karoy Lorentey
8944591e71 [benchmark] Simplify benchmark registration 2021-09-15 22:08:08 -07:00
Karoy Lorentey
8910b75cfe [benchmark] Stop capitalizing function and variable names 2021-09-15 22:08:07 -07:00
Karoy Lorentey
203dc55b60 [benchmark] CheckResults → check
Capitalizing function names is against Swift naming conventions.
2021-09-15 22:08:07 -07:00
Michael Gottesman
583b2b00e5 [benchmark] Fix names 2020-02-25 13:53:20 -08:00
Michael Gottesman
66ece215c1 Add a version of Prims that uses Unmanaged._withUnsafeGuaranteedRef. 2020-02-25 12:33:32 -08:00
Michael Gottesman
7c5f4d8960 Add variants of PrimsNonStrongRef that use a closure access function rather than an accessor to get the underlying value.
I am going to be adding a variant of this that uses
Unmanaged._withUnsafeGuaranteedRef(...). To truly make it fair, I am
adding variants that also use an access ref entrypoint.
2020-02-25 12:33:32 -08:00
Michael Gottesman
561c76d5bb Add version of non strong ref prims that uses a closure based approach to access the value.
I am going to add a version of this that tests that Unmanaged._withUGR
gives us expected performance. So we really need both versions of all of
the four current benchmarks to make this truly fair.
2020-02-25 12:33:32 -08:00
Michael Gottesman
25233e53fd Fix small bit of incorrect code that was hiding behind an #if false. 2020-02-25 12:33:32 -08:00
Michael Gottesman
b4e25f9274 [benchmark] Add versions of prims that in a non-efficient way uses various forms of non-strong references.
Specifically, I add some benchmarks for weak, unowned, unsafe (unowned), and
unmanaged. The reason for the split in between unsafe (unowned) and unmanaged is
that one is testing the raw compiler features and the other is validating stdlib
performance.
2019-09-10 18:32:44 -07:00