[benchmark] COW Legacy Factor

This commit is contained in:
Pavol Vaskovic
2018-11-30 08:55:49 +01:00
parent 9e8230badc
commit 642c6943a4
2 changed files with 7 additions and 4 deletions

View File

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