Register the LinkedList benchmark.

This commit is contained in:
Andrew Trick
2017-09-22 20:49:07 -07:00
parent c0ffc0d451
commit d38e8da6a2
2 changed files with 9 additions and 0 deletions

View File

@@ -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

View File

@@ -133,6 +133,7 @@ registerBenchmark(ArraySetElement)
registerBenchmark(ExclusivityGlobal)
registerBenchmark(ExclusivityInMatSet)
registerBenchmark(ExclusivityIndependent)
registerBenchmark(LinkedList)
registerBenchmark(ObjectAllocation)
@inline(__always)