mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[benchmark] COW Legacy Factor
This commit is contained in:
@@ -8,7 +8,8 @@ import TestsUtils
|
||||
public var COWTree = BenchmarkInfo(
|
||||
name: "COWTree",
|
||||
runFunction: run_COWTree,
|
||||
tags: [.validation, .abstraction, .String]
|
||||
tags: [.validation, .abstraction, .String],
|
||||
legacyFactor: 20
|
||||
)
|
||||
|
||||
@inline(never)
|
||||
@@ -17,7 +18,7 @@ public func run_COWTree(_ N: Int) {
|
||||
var tree2 = Tree<String>()
|
||||
var tree3 = Tree<String>()
|
||||
|
||||
for _ in 1...1000*N {
|
||||
for _ in 1...50*N {
|
||||
tree1 = Tree<String>()
|
||||
tree1.insert("Emily")
|
||||
tree2 = tree1
|
||||
|
||||
Reference in New Issue
Block a user