Skip to content

Commit d3edef8

Browse files
committed
update framework version name
1 parent cae50d1 commit d3edef8

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

LayoutFrameworkBenchmark/Benchmarks/BenchmarkViewController.swift

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class BenchmarkViewController: UITableViewController {
2929
return CollectionViewControllerFeedItemFlexLayoutView(data: data)
3030
}),
3131

32-
ViewControllerData(title: "LayoutKit 10.0", factoryBlock: { viewCount in
32+
ViewControllerData(title: "LayoutKit 10.1", factoryBlock: { viewCount in
3333
let data = FeedItemData.generate(count: viewCount)
3434
return CollectionViewControllerFeedItemLayoutKitView(data: data)
3535
}),
@@ -39,7 +39,7 @@ class BenchmarkViewController: UITableViewController {
3939
return CollectionViewControllerFeedItemManualView(data: data)
4040
}),
4141

42-
ViewControllerData(title: "NKFrameLayoutKit 2.4", factoryBlock: { viewCount in
42+
ViewControllerData(title: "NKFrameLayoutKit 2.5", factoryBlock: { viewCount in
4343
let data = FeedItemData.generate(count: viewCount)
4444
return CollectionViewControllerFeedItemNKFrameLayoutKitView(data: data)
4545
}),
@@ -49,12 +49,12 @@ class BenchmarkViewController: UITableViewController {
4949
return CollectionViewControllerFeedItemNotAutoLayoutView(data: data)
5050
}),
5151

52-
ViewControllerData(title: "PinLayout 1.9", factoryBlock: { viewCount in
52+
ViewControllerData(title: "PinLayout 1.10", factoryBlock: { viewCount in
5353
let data = FeedItemData.generate(count: viewCount)
5454
return CollectionViewControllerFeedItemPinLayoutView(data: data)
5555
}),
5656

57-
ViewControllerData(title: "Texture", factoryBlock: { viewCount in
57+
ViewControllerData(title: "Texture 3.1", factoryBlock: { viewCount in
5858
let data = FeedItemData.generate(count: viewCount)
5959
return TextureCollectionViewController(data: data)
6060
}),
@@ -134,7 +134,9 @@ class BenchmarkViewController: UITableViewController {
134134
private func printResults(name: String, results: [Result]) {
135135
var resultsString = "\(name)\t"
136136
results.forEach { (result) in
137-
resultsString += "\(result.secondsPerOperation)\t"
137+
let a = "\(result.secondsPerOperation)"
138+
resultsString += String(a.prefix(6))
139+
resultsString += ","
138140
}
139141
print(resultsString)
140142
}

0 commit comments

Comments
 (0)