mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Register the LinkedList benchmark.
This commit is contained in:
@@ -14,6 +14,14 @@
|
||||
// utils/benchmark, with modifications for performance measuring.
|
||||
import TestsUtils
|
||||
|
||||
// 47% _swift_retain
|
||||
// 43% _swift_release
|
||||
public var LinkedList = BenchmarkInfo(
|
||||
name: "LinkedList",
|
||||
runFunction: run_LinkedList,
|
||||
tags: [.runtime, .cpubench, .refcount]
|
||||
)
|
||||
|
||||
final class Node {
|
||||
var next: Node?
|
||||
var data: Int
|
||||
|
||||
@@ -133,6 +133,7 @@ registerBenchmark(ArraySetElement)
|
||||
registerBenchmark(ExclusivityGlobal)
|
||||
registerBenchmark(ExclusivityInMatSet)
|
||||
registerBenchmark(ExclusivityIndependent)
|
||||
registerBenchmark(LinkedList)
|
||||
registerBenchmark(ObjectAllocation)
|
||||
|
||||
@inline(__always)
|
||||
|
||||
Reference in New Issue
Block a user