Skip to content

Commit c307cb3

Browse files
committed
---
yaml --- r: 341350 b: refs/heads/rxwei-patch-1 c: a84af6f h: refs/heads/master
1 parent 16ab66b commit c307cb3

File tree

166 files changed

+1618
-3736
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+1618
-3736
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-08-18-a: b10b1fce14385faa6d44f6b933e95
10151015
refs/heads/rdar-43033749-fix-batch-mode-no-diags-swift-5.0-branch: a14e64eaad30de89f0f5f0b2a782eed7ecdcb255
10161016
refs/heads/revert-19006-error-bridging-integer-type: 8a9065a3696535305ea53fe9b71f91cbe6702019
10171017
refs/heads/revert-19050-revert-19006-error-bridging-integer-type: ecf752d54b05dd0a20f510f0bfa54a3fec3bcaca
1018-
refs/heads/rxwei-patch-1: f0291626e3add70e5cce8aada79b5e7ab1589a7b
1018+
refs/heads/rxwei-patch-1: a84af6f68b4454c276cdf4bf748dedad7f1c7558
10191019
refs/heads/shahmishal-patch-1: e58ec0f7488258d42bef51bc3e6d7b3dc74d7b2a
10201020
refs/heads/typelist-existential: 4046359efd541fb5c72d69a92eefc0a784df8f5e
10211021
refs/tags/swift-4.2-DEVELOPMENT-SNAPSHOT-2018-08-20-a: 4319ba09e4fb8650ee86061075c74a016b6baab9

branches/rxwei-patch-1/benchmark/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ set(SWIFT_BENCH_MODULES
7878
single-source/DictionaryRemove
7979
single-source/DictionarySubscriptDefault
8080
single-source/DictionarySwap
81-
single-source/Diffing
8281
single-source/DropFirst
8382
single-source/DropLast
8483
single-source/DropWhile
@@ -105,7 +104,6 @@ set(SWIFT_BENCH_MODULES
105104
single-source/Memset
106105
single-source/MonteCarloE
107106
single-source/MonteCarloPi
108-
single-source/Myers
109107
single-source/NSDictionaryCastToSwift
110108
single-source/NSError
111109
single-source/NSStringConversion

branches/rxwei-patch-1/benchmark/single-source/AngryPhonebook.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// This test is based on single-source/Phonebook, with
1414
// to test uppercase and lowercase ASCII string fast paths.
1515
import TestsUtils
16+
import Foundation
1617

1718
public let AngryPhonebook = BenchmarkInfo(
1819
name: "AngryPhonebook",

branches/rxwei-patch-1/benchmark/single-source/BinaryFloatingPointConversionFromBinaryInteger.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// This test checks performance of generic binary floating-point conversion from
1414
// a binary integer.
1515

16+
import Foundation
1617
import TestsUtils
1718

1819
#if swift(>=4.2)
@@ -109,7 +110,7 @@ extension MockBinaryInteger : BinaryInteger {
109110
var trailingZeroBitCount: Int {
110111
return _value.trailingZeroBitCount
111112
}
112-
113+
113114
func isMultiple(of other: MockBinaryInteger<T>) -> Bool {
114115
return _value.isMultiple(of: other._value)
115116
}
@@ -210,3 +211,4 @@ public func run_BinaryFloatingPointConversionFromBinaryInteger(_ N: Int) {
210211
}
211212

212213
#endif
214+

branches/rxwei-patch-1/benchmark/single-source/BinaryFloatingPointProperties.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
import Foundation
1314
import TestsUtils
1415

1516
public let BinaryFloatingPointPropertiesBinade = BenchmarkInfo(

branches/rxwei-patch-1/benchmark/single-source/BitCount.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// This test checks performance of Swift bit count.
1414
// and mask operator.
1515
// rdar://problem/22151678
16+
import Foundation
1617
import TestsUtils
1718

1819
public let BitCount = BenchmarkInfo(

branches/rxwei-patch-1/benchmark/single-source/BucketSort.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,17 @@
1616
// https://github.com/raywenderlich/swift-algorithm-club/tree/master/Bucket%20Sort
1717
//
1818
// It sorts an array of generic `SortableItem`s. If the type of `sortingAlgo`
19-
// is not known to the call site at line 89, the `sort` method can not be
19+
// is not known to the call site at line 90, the `sort` method can not be
2020
// specialized to integer array sorting, which will lead to a huge performance
2121
// loss. Since `SortingAlgorithm` and `InsertionSort` are declared to be
22-
// `public` and the lines 88-90 can not be inlined in `bucketSort` (due to
22+
// `public` and the lines 89-91 can not be inlined in `bucketSort` (due to
2323
// inlining heuristic limitations), compiler without ExistentialSpecializer
2424
// optimization can not achieve this feat. With ExistentialSpecializer which
2525
// enables generic specialization recursively in a call chain, we're able to
26-
// specialize line 89 for `InsertionSort` on integers.
26+
// specialize line 90 for `InsertionSort` on integers.
2727

2828
import TestsUtils
29+
import Foundation
2930

3031
public let BucketSort = BenchmarkInfo(
3132
name: "BucketSort",
@@ -116,8 +117,7 @@ let items: [Int] = {
116117
let buckets: [Bucket<Int>] = {
117118
let bucketCount = 10
118119
let maxValue = items.max()!.convertToInt()
119-
let maxCapacity = Int(
120-
(Double(maxValue + 1) / Double(bucketCount)).rounded(.up))
120+
let maxCapacity = Int(ceil(Double(maxValue + 1) / Double(bucketCount)))
121121
return (0..<bucketCount).map { _ in Bucket<Int>(capacity: maxCapacity) }
122122
}()
123123

branches/rxwei-patch-1/benchmark/single-source/ByteSwap.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// This test checks performance of Swift byte swap.
1414
// rdar://problem/22151907
1515

16+
import Foundation
1617
import TestsUtils
1718

1819
public let ByteSwap = BenchmarkInfo(

branches/rxwei-patch-1/benchmark/single-source/CString.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
import TestsUtils
1414
#if os(Linux)
1515
import Glibc
16-
#elseif os(Windows)
17-
import MSVCRT
1816
#else
1917
import Darwin
2018
#endif

branches/rxwei-patch-1/benchmark/single-source/Calculator.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
import TestsUtils
14+
import Foundation
1415

1516
public let Calculator = BenchmarkInfo(
1617
name: "Calculator",
@@ -52,3 +53,4 @@ public func run_Calculator(_ N: Int) {
5253
}
5354
CheckResults(c == 0)
5455
}
56+

branches/rxwei-patch-1/benchmark/single-source/Diffing.swift

Lines changed: 0 additions & 125 deletions
This file was deleted.

branches/rxwei-patch-1/benchmark/single-source/Hanoi.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
// This test checks performance of Swift hanoi tower.
1414
// <rdar://problem/22151932>
15+
import Foundation
1516
import TestsUtils
1617

1718
public let Hanoi = BenchmarkInfo(

0 commit comments

Comments
 (0)