Skip to content

Commit b4e25f9

Browse files
committed
[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.
1 parent 6d90558 commit b4e25f9

File tree

3 files changed

+1117
-0
lines changed

3 files changed

+1117
-0
lines changed

benchmark/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ set(SWIFT_BENCH_MODULES
131131
single-source/Prefix
132132
single-source/PrefixWhile
133133
single-source/Prims
134+
single-source/PrimsNonStrongRef
134135
single-source/ProtocolDispatch
135136
single-source/ProtocolDispatch2
136137
single-source/Queue

0 commit comments

Comments
 (0)