Skip to content

[stdlib] Replace Integer Parsing Code #9729

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 18, 2017
Merged

Conversation

dabrahams
Copy link
Contributor

Local testing showed a 2x speedup for StrToInt

@dabrahams
Copy link
Contributor Author

@swift-ci Please benchmark

@dabrahams
Copy link
Contributor Author

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build comment file:

Build failed before running benchmark.


@dabrahams
Copy link
Contributor Author

@swift-ci Please smoke benchmark

@swift-ci
Copy link
Contributor

Build comment file:

Optimized (O)

Regression (7)
TEST OLD NEW DELTA SPEEDUP
ObjectiveCBridgeStubNSDateRefAccess 317 346 +9.1% 0.92x
MapReduceAnyCollection 307 333 +8.5% 0.92x
ObjectiveCBridgeStubToNSDate 14560 15620 +7.3% 0.93x (?)
IterateData 708 756 +6.8% 0.94x
CaptureProp 4562 4851 +6.3% 0.94x
SortStringsUnicode 7593 8059 +6.1% 0.94x
NopDeinit 27441 28963 +5.5% 0.95x
Improvement (9)
TEST OLD NEW DELTA SPEEDUP
StringHasPrefix 33 16 -51.5% 2.06x
StringHasSuffix 33 16 -51.5% 2.06x
StrToInt 4001 2323 -41.9% 1.72x
SuffixCountableRange 11 10 -9.1% 1.10x
MapReduce 330 303 -8.2% 1.09x
BitCount 14 13 -7.1% 1.08x
Calculator 35 33 -5.7% 1.06x
ProtocolDispatch2 170 161 -5.3% 1.06x
ObjectiveCBridgeFromNSArrayAnyObjectToString 46551 44169 -5.1% 1.05x
No Changes (256)
TEST OLD NEW DELTA SPEEDUP
AngryPhonebook 2960 2956 -0.1% 1.00x (?)
AnyHashableWithAClass 67212 66709 -0.7% 1.01x
Array2D 2046 2020 -1.3% 1.01x
ArrayAppend 772 772 +0.0% 1.00x
ArrayAppendArrayOfInt 597 597 +0.0% 1.00x
ArrayAppendAscii 22384 22564 +0.8% 0.99x
ArrayAppendFromGeneric 596 597 +0.2% 1.00x
ArrayAppendGenericStructs 1222 1229 +0.6% 0.99x (?)
ArrayAppendLatin1 43348 43329 -0.0% 1.00x (?)
ArrayAppendLazyMap 936 939 +0.3% 1.00x
ArrayAppendOptionals 1224 1239 +1.2% 0.99x
ArrayAppendRepeatCol 838 838 +0.0% 1.00x
ArrayAppendReserved 535 534 -0.2% 1.00x (?)
ArrayAppendSequence 945 944 -0.1% 1.00x (?)
ArrayAppendStrings 13588 13610 +0.2% 1.00x (?)
ArrayAppendToFromGeneric 598 597 -0.2% 1.00x
ArrayAppendToGeneric 597 597 +0.0% 1.00x
ArrayAppendUTF16 41196 41141 -0.1% 1.00x (?)
ArrayInClass 61 61 +0.0% 1.00x
ArrayLiteral 1227 1228 +0.1% 1.00x (?)
ArrayOfGenericPOD 219 219 +0.0% 1.00x
ArrayOfGenericRef 3997 3998 +0.0% 1.00x (?)
ArrayOfPOD 166 166 +0.0% 1.00x
ArrayOfRef 3882 3885 +0.1% 1.00x (?)
ArrayPlusEqualArrayOfInt 597 597 +0.0% 1.00x
ArrayPlusEqualFiveElementCollection 4669 4683 +0.3% 1.00x (?)
ArrayPlusEqualSingleElementCollection 770 771 +0.1% 1.00x (?)
ArrayPlusEqualThreeElements 1613 1610 -0.2% 1.00x
ArraySubscript 1469 1474 +0.3% 1.00x (?)
ArrayValueProp 6 6 +0.0% 1.00x
ArrayValueProp2 6 6 +0.0% 1.00x
ArrayValueProp3 6 6 +0.0% 1.00x
ArrayValueProp4 6 6 +0.0% 1.00x
ByteSwap 0 0 +0.0% 1.00x
CStringLongAscii 4978 5017 +0.8% 0.99x
CStringLongNonAscii 2140 2146 +0.3% 1.00x
CStringShortAscii 5461 5447 -0.3% 1.00x
CharacterLiteralsLarge 8825 9010 +2.1% 0.98x (?)
CharacterLiteralsSmall 311 311 +0.0% 1.00x
Chars 1860 1842 -1.0% 1.01x
ClassArrayGetter 13 13 +0.0% 1.00x
DeadArray 186 182 -2.2% 1.02x (?)
Dictionary 568 574 +1.1% 0.99x
Dictionary2 1805 1803 -0.1% 1.00x (?)
Dictionary2OfObjects 3318 3299 -0.6% 1.01x (?)
Dictionary3 465 460 -1.1% 1.01x
Dictionary3OfObjects 896 896 +0.0% 1.00x
DictionaryBridge 2682 2738 +2.1% 0.98x
DictionaryLiteral 1487 1487 +0.0% 1.00x
DictionaryOfObjects 2339 2334 -0.2% 1.00x (?)
DictionaryRemove 3435 3306 -3.8% 1.04x
DictionaryRemoveOfObjects 23365 23438 +0.3% 1.00x
DictionarySwap 428 428 +0.0% 1.00x
DictionarySwapOfObjects 6913 6915 +0.0% 1.00x (?)
DropFirstAnyCollection 56 56 +0.0% 1.00x
DropFirstAnyCollectionLazy 44868 44889 +0.0% 1.00x (?)
DropFirstAnySeqCRangeIter 28416 28294 -0.4% 1.00x
DropFirstAnySeqCRangeIterLazy 28430 28293 -0.5% 1.00x (?)
DropFirstAnySeqCntRange 50 50 +0.0% 1.00x
DropFirstAnySeqCntRangeLazy 50 50 +0.0% 1.00x
DropFirstAnySequence 6992 6986 -0.1% 1.00x
DropFirstAnySequenceLazy 7087 7080 -0.1% 1.00x (?)
DropFirstArray 25 24 -4.0% 1.04x
DropFirstArrayLazy 24 25 +4.2% 0.96x
DropFirstCountableRange 32 32 +0.0% 1.00x
DropFirstCountableRangeLazy 32 32 +0.0% 1.00x
DropFirstSequence 3066 3065 -0.0% 1.00x
DropFirstSequenceLazy 3031 3027 -0.1% 1.00x
DropLastAnyCollection 22 22 +0.0% 1.00x
DropLastAnyCollectionLazy 15030 15023 -0.0% 1.00x (?)
DropLastAnySeqCRangeIter 4610 4612 +0.0% 1.00x (?)
DropLastAnySeqCRangeIterLazy 4610 4612 +0.0% 1.00x (?)
DropLastAnySeqCntRange 16 16 +0.0% 1.00x
DropLastAnySeqCntRangeLazy 16 16 +0.0% 1.00x
DropLastAnySequence 6751 6722 -0.4% 1.00x
DropLastAnySequenceLazy 6551 6527 -0.4% 1.00x (?)
DropLastArray 8 8 +0.0% 1.00x
DropLastArrayLazy 8 8 +0.0% 1.00x
DropLastCountableRange 10 10 +0.0% 1.00x
DropLastCountableRangeLazy 10 10 +0.0% 1.00x
DropLastSequence 581 593 +2.1% 0.98x
DropLastSequenceLazy 581 592 +1.9% 0.98x
DropWhileAnyCollection 70 70 +0.0% 1.00x
DropWhileAnyCollectionLazy 103 103 +0.0% 1.00x
DropWhileAnySeqCRangeIter 21854 21917 +0.3% 1.00x (?)
DropWhileAnySeqCRangeIterLazy 103 103 +0.0% 1.00x
DropWhileAnySeqCntRange 64 64 +0.0% 1.00x
DropWhileAnySeqCntRangeLazy 103 103 +0.0% 1.00x
DropWhileAnySequence 7593 7600 +0.1% 1.00x
DropWhileAnySequenceLazy 2032 2032 +0.0% 1.00x
DropWhileArray 37 37 +0.0% 1.00x
DropWhileArrayLazy 78 78 +0.0% 1.00x
DropWhileCountableRange 35 36 +2.9% 0.97x
DropWhileCountableRangeLazy 68 68 +0.0% 1.00x
DropWhileSequence 3124 3124 +0.0% 1.00x
DropWhileSequenceLazy 65 65 +0.0% 1.00x
ErrorHandling 3025 2919 -3.5% 1.04x (?)
GlobalClass 0 0 +0.0% 1.00x
Hanoi 3457 3412 -1.3% 1.01x
HashTest 1760 1753 -0.4% 1.00x (?)
Histogram 246 248 +0.8% 0.99x
Integrate 262 262 +0.0% 1.00x
Join 445 447 +0.4% 1.00x (?)
LazilyFilteredArrays 64766 64804 +0.1% 1.00x (?)
LazilyFilteredRange 3899 3887 -0.3% 1.00x (?)
LinkedList 7101 7101 +0.0% 1.00x
MapReduceAnyCollectionShort 2069 2055 -0.7% 1.01x
MapReduceClass 3046 3066 +0.7% 0.99x
MapReduceClassShort 4553 4528 -0.5% 1.01x
MapReduceLazyCollection 15 15 +0.0% 1.00x
MapReduceLazyCollectionShort 44 45 +2.3% 0.98x
MapReduceLazySequence 90 90 +0.0% 1.00x
MapReduceSequence 453 452 -0.2% 1.00x (?)
MapReduceShort 1931 1938 +0.4% 1.00x
MapReduceShortString 21 21 +0.0% 1.00x
MapReduceString 108 109 +0.9% 0.99x
Memset 234 234 +0.0% 1.00x
MonteCarloE 10424 10279 -1.4% 1.01x
MonteCarloPi 43995 44046 +0.1% 1.00x
NSDictionaryCastToSwift 5401 5368 -0.6% 1.01x (?)
NSError 289 290 +0.3% 1.00x (?)
NSStringConversion 768 766 -0.3% 1.00x (?)
ObjectAllocation 180 179 -0.6% 1.01x
ObjectiveCBridgeFromNSArrayAnyObject 23642 23351 -1.2% 1.01x (?)
ObjectiveCBridgeFromNSArrayAnyObjectForced 4475 4500 +0.6% 0.99x (?)
ObjectiveCBridgeFromNSArrayAnyObjectToStringForced 37450 37709 +0.7% 0.99x (?)
ObjectiveCBridgeFromNSDictionaryAnyObject 119003 118633 -0.3% 1.00x (?)
ObjectiveCBridgeFromNSDictionaryAnyObjectForced 5194 5142 -1.0% 1.01x (?)
ObjectiveCBridgeFromNSDictionaryAnyObjectToString 101462 97958 -3.5% 1.04x
ObjectiveCBridgeFromNSDictionaryAnyObjectToStringForced 90770 89521 -1.4% 1.01x (?)
ObjectiveCBridgeFromNSSetAnyObject 64337 64585 +0.4% 1.00x (?)
ObjectiveCBridgeFromNSSetAnyObjectForced 4212 4150 -1.5% 1.01x
ObjectiveCBridgeFromNSSetAnyObjectToString 72729 71940 -1.1% 1.01x (?)
ObjectiveCBridgeFromNSSetAnyObjectToStringForced 62739 63079 +0.5% 0.99x (?)
ObjectiveCBridgeFromNSString 1404 1418 +1.0% 0.99x
ObjectiveCBridgeFromNSStringForced 2327 2350 +1.0% 0.99x
ObjectiveCBridgeStubDataAppend 3765 3821 +1.5% 0.99x (?)
ObjectiveCBridgeStubDateAccess 181 181 +0.0% 1.00x
ObjectiveCBridgeStubDateMutation 272 272 +0.0% 1.00x
ObjectiveCBridgeStubFromArrayOfNSString 28640 28635 -0.0% 1.00x (?)
ObjectiveCBridgeStubFromNSDate 3580 3641 +1.7% 0.98x
ObjectiveCBridgeStubFromNSDateRef 3570 3618 +1.3% 0.99x
ObjectiveCBridgeStubFromNSString 913 938 +2.7% 0.97x
ObjectiveCBridgeStubFromNSStringRef 174 177 +1.7% 0.98x
ObjectiveCBridgeStubNSDataAppend 2297 2414 +5.1% 0.95x
ObjectiveCBridgeStubNSDateMutationRef 12361 12613 +2.0% 0.98x (?)
ObjectiveCBridgeStubToArrayOfNSString 29037 29096 +0.2% 1.00x (?)
ObjectiveCBridgeStubToNSDateRef 3322 3355 +1.0% 0.99x (?)
ObjectiveCBridgeStubToNSString 1514 1514 +0.0% 1.00x
ObjectiveCBridgeStubToNSStringRef 110 109 -0.9% 1.01x
ObjectiveCBridgeStubURLAppendPath 220497 222842 +1.1% 0.99x (?)
ObjectiveCBridgeStubURLAppendPathRef 222895 212987 -4.4% 1.05x
ObjectiveCBridgeToNSArray 29242 29912 +2.3% 0.98x (?)
ObjectiveCBridgeToNSDictionary 44747 44821 +0.2% 1.00x (?)
ObjectiveCBridgeToNSSet 40465 39438 -2.5% 1.03x
ObjectiveCBridgeToNSString 1277 1280 +0.2% 1.00x (?)
ObserverClosure 2284 2282 -0.1% 1.00x (?)
ObserverForwarderStruct 1104 1118 +1.3% 0.99x (?)
ObserverPartiallyAppliedMethod 3809 3779 -0.8% 1.01x (?)
ObserverUnappliedMethod 2624 2635 +0.4% 1.00x (?)
OpenClose 51 51 +0.0% 1.00x
Phonebook 8270 8255 -0.2% 1.00x (?)
PolymorphicCalls 22 22 +0.0% 1.00x
PopFrontArray 1101 1107 +0.5% 0.99x
PopFrontArrayGeneric 1101 1105 +0.4% 1.00x (?)
PopFrontUnsafePointer 8961 8963 +0.0% 1.00x (?)
PrefixAnyCollection 56 56 +0.0% 1.00x
PrefixAnyCollectionLazy 45063 45057 -0.0% 1.00x (?)
PrefixAnySeqCRangeIter 21469 21608 +0.6% 0.99x
PrefixAnySeqCRangeIterLazy 21860 21901 +0.2% 1.00x (?)
PrefixAnySeqCntRange 50 50 +0.0% 1.00x
PrefixAnySeqCntRangeLazy 50 50 +0.0% 1.00x
PrefixAnySequence 6287 6302 +0.2% 1.00x
PrefixAnySequenceLazy 6283 6296 +0.2% 1.00x
PrefixArray 24 25 +4.2% 0.96x
PrefixArrayLazy 25 24 -4.0% 1.04x
PrefixCountableRange 32 32 +0.0% 1.00x
PrefixCountableRangeLazy 32 32 +0.0% 1.00x
PrefixSequence 2657 2657 +0.0% 1.00x
PrefixSequenceLazy 2618 2618 +0.0% 1.00x
PrefixWhileAnyCollection 96 96 +0.0% 1.00x
PrefixWhileAnyCollectionLazy 75 75 +0.0% 1.00x
PrefixWhileAnySeqCRangeIter 12527 12529 +0.0% 1.00x (?)
PrefixWhileAnySeqCRangeIterLazy 75 75 +0.0% 1.00x
PrefixWhileAnySeqCntRange 90 91 +1.1% 0.99x
PrefixWhileAnySeqCntRangeLazy 75 75 +0.0% 1.00x
PrefixWhileAnySequence 14194 14024 -1.2% 1.01x
PrefixWhileAnySequenceLazy 1492 1492 +0.0% 1.00x
PrefixWhileArray 62 62 +0.0% 1.00x
PrefixWhileArrayLazy 49 49 +0.0% 1.00x
PrefixWhileCountableRange 36 36 +0.0% 1.00x
PrefixWhileCountableRangeLazy 32 32 +0.0% 1.00x
PrefixWhileSequence 313 312 -0.3% 1.00x (?)
PrefixWhileSequenceLazy 28 28 +0.0% 1.00x
Prims 760 760 +0.0% 1.00x
ProtocolDispatch 2727 2728 +0.0% 1.00x (?)
RC4 159 160 +0.6% 0.99x
RGBHistogram 2330 2324 -0.3% 1.00x (?)
RGBHistogramOfObjects 24052 24103 +0.2% 1.00x (?)
RangeAssignment 303 296 -2.3% 1.02x
RecursiveOwnedParameter 2331 2317 -0.6% 1.01x
ReversedArray 49 49 +0.0% 1.00x
ReversedBidirectional 29066 29025 -0.1% 1.00x (?)
ReversedDictionary 109 111 +1.8% 0.98x
SetExclusiveOr 3264 3192 -2.2% 1.02x (?)
SetExclusiveOr_OfObjects 9552 9616 +0.7% 0.99x (?)
SetIntersect 280 271 -3.2% 1.03x
SetIntersect_OfObjects 1737 1740 +0.2% 1.00x (?)
SetIsSubsetOf 286 286 +0.0% 1.00x
SetIsSubsetOf_OfObjects 359 359 +0.0% 1.00x
SetUnion 2680 2679 -0.0% 1.00x (?)
SetUnion_OfObjects 8096 8137 +0.5% 0.99x (?)
SevenBoom 1481 1482 +0.1% 1.00x (?)
Sim2DArray 276 276 +0.0% 1.00x
SortLargeExistentials 8036 8085 +0.6% 0.99x
SortLettersInPlace 1148 1148 +0.0% 1.00x
SortSortedStrings 864 867 +0.3% 1.00x (?)
SortStrings 1683 1652 -1.8% 1.02x
StackPromo 22053 22170 +0.5% 0.99x
StaticArray 21 21 +0.0% 1.00x
StrComplexWalk 719 720 +0.1% 1.00x
StringAdder 0 0 +0.0% 1.00x
StringBuilder 1366 1370 +0.3% 1.00x (?)
StringBuilderLong 953 952 -0.1% 1.00x (?)
StringEdits 204872 205972 +0.5% 0.99x (?)
StringEqualPointerComparison 7344 7309 -0.5% 1.00x (?)
StringFromLongWholeSubstring 15359 15351 -0.1% 1.00x (?)
StringFromLongWholeSubstringGeneric 218 218 +0.0% 1.00x
StringHasPrefixUnicode 14645 14745 +0.7% 0.99x
StringHasSuffixUnicode 62077 62373 +0.5% 1.00x
StringInterpolation 8543 8581 +0.4% 1.00x (?)
StringMatch 9023 9412 +4.3% 0.96x
StringUTF16Builder 2184 2205 +1.0% 0.99x
StringWalk 1278 1302 +1.9% 0.98x
StringWithCString 130742 130969 +0.2% 1.00x (?)
SubstringFromLongString 159 159 +0.0% 1.00x
SubstringFromLongStringGeneric 341 340 -0.3% 1.00x
SuffixAnyCollection 22 22 +0.0% 1.00x
SuffixAnyCollectionLazy 14922 14982 +0.4% 1.00x
SuffixAnySeqCRangeIter 4935 4939 +0.1% 1.00x
SuffixAnySeqCRangeIterLazy 4937 4937 +0.0% 1.00x
SuffixAnySeqCntRange 16 16 +0.0% 1.00x
SuffixAnySeqCntRangeLazy 16 16 +0.0% 1.00x
SuffixAnySequence 6674 6689 +0.2% 1.00x
SuffixAnySequenceLazy 6622 6559 -1.0% 1.01x
SuffixArray 8 8 +0.0% 1.00x
SuffixArrayLazy 8 8 +0.0% 1.00x
SuffixCountableRangeLazy 10 10 +0.0% 1.00x
SuffixSequence 4493 4451 -0.9% 1.01x
SuffixSequenceLazy 4493 4451 -0.9% 1.01x
SuperChars 102367 102908 +0.5% 0.99x
TwoSum 862 863 +0.1% 1.00x (?)
TypeFlood 0 0 +0.0% 1.00x
UTF8Decode 257 255 -0.8% 1.01x
Walsh 357 353 -1.1% 1.01x
XorLoop 347 347 +0.0% 1.00x
**Unoptimized (Onone)**
Regression (3)
TEST OLD NEW DELTA SPEEDUP
StrToInt 5095 86569 +1599.1% 0.06x
NopDeinit 50414 54405 +7.9% 0.93x
StringAdder 45 48 +6.7% 0.94x
Improvement (3)
TEST OLD NEW DELTA SPEEDUP
ByteSwap 28 26 -7.1% 1.08x
ArrayAppendReserved 3786 3540 -6.5% 1.07x
ArrayAppend 4036 3795 -6.0% 1.06x
No Changes (266)
TEST OLD NEW DELTA SPEEDUP
AngryPhonebook 3129 3117 -0.4% 1.00x (?)
AnyHashableWithAClass 84053 83869 -0.2% 1.00x
Array2D 607935 608496 +0.1% 1.00x
ArrayAppendArrayOfInt 650 651 +0.2% 1.00x (?)
ArrayAppendAscii 60288 60439 +0.3% 1.00x
ArrayAppendFromGeneric 653 652 -0.2% 1.00x (?)
ArrayAppendGenericStructs 1297 1316 +1.5% 0.99x (?)
ArrayAppendLatin1 82654 82103 -0.7% 1.01x
ArrayAppendLazyMap 211684 211193 -0.2% 1.00x
ArrayAppendOptionals 1298 1293 -0.4% 1.00x (?)
ArrayAppendRepeatCol 213995 212831 -0.5% 1.01x
ArrayAppendSequence 75956 76641 +0.9% 0.99x
ArrayAppendStrings 13654 13728 +0.5% 0.99x (?)
ArrayAppendToFromGeneric 652 652 +0.0% 1.00x
ArrayAppendToGeneric 653 654 +0.2% 1.00x (?)
ArrayAppendUTF16 81282 79984 -1.6% 1.02x
ArrayInClass 4737 4735 -0.0% 1.00x (?)
ArrayLiteral 1482 1481 -0.1% 1.00x
ArrayOfGenericPOD 3077 3074 -0.1% 1.00x
ArrayOfGenericRef 9606 9610 +0.0% 1.00x (?)
ArrayOfPOD 1906 1833 -3.8% 1.04x
ArrayOfRef 8983 8911 -0.8% 1.01x (?)
ArrayPlusEqualArrayOfInt 651 651 +0.0% 1.00x
ArrayPlusEqualFiveElementCollection 283751 285682 +0.7% 0.99x (?)
ArrayPlusEqualSingleElementCollection 279422 280682 +0.5% 1.00x (?)
ArrayPlusEqualThreeElements 10029 10057 +0.3% 1.00x (?)
ArraySubscript 4142 4146 +0.1% 1.00x
ArrayValueProp 3018 3025 +0.2% 1.00x (?)
ArrayValueProp2 3669 3663 -0.2% 1.00x (?)
ArrayValueProp3 3476 3489 +0.4% 1.00x
ArrayValueProp4 3363 3341 -0.7% 1.01x (?)
BitCount 168 172 +2.4% 0.98x
CStringLongAscii 5327 5368 +0.8% 0.99x
CStringLongNonAscii 2428 2459 +1.3% 0.99x
CStringShortAscii 8229 8208 -0.3% 1.00x (?)
Calculator 1158 1201 +3.7% 0.96x
CaptureProp 109156 110911 +1.6% 0.98x (?)
CharacterLiteralsLarge 10070 9843 -2.3% 1.02x
CharacterLiteralsSmall 1005 1001 -0.4% 1.00x
Chars 7319 7355 +0.5% 1.00x (?)
ClassArrayGetter 929 929 +0.0% 1.00x
DeadArray 118220 118761 +0.5% 1.00x (?)
Dictionary 1714 1681 -1.9% 1.02x (?)
Dictionary2 3480 3493 +0.4% 1.00x (?)
Dictionary2OfObjects 5798 5797 -0.0% 1.00x (?)
Dictionary3 1363 1354 -0.7% 1.01x
Dictionary3OfObjects 2238 2238 +0.0% 1.00x
DictionaryBridge 2774 2719 -2.0% 1.02x (?)
DictionaryLiteral 8238 8321 +1.0% 0.99x (?)
DictionaryOfObjects 4588 4567 -0.5% 1.00x (?)
DictionaryRemove 21600 21586 -0.1% 1.00x (?)
DictionaryRemoveOfObjects 55076 55411 +0.6% 0.99x (?)
DictionarySwap 5617 5615 -0.0% 1.00x (?)
DictionarySwapOfObjects 19823 19985 +0.8% 0.99x (?)
DropFirstAnyCollection 19288 19400 +0.6% 0.99x
DropFirstAnyCollectionLazy 137576 136599 -0.7% 1.01x (?)
DropFirstAnySeqCRangeIter 29940 29924 -0.1% 1.00x (?)
DropFirstAnySeqCRangeIterLazy 29807 30014 +0.7% 0.99x
DropFirstAnySeqCntRange 19206 19410 +1.1% 0.99x
DropFirstAnySeqCntRangeLazy 19118 19257 +0.7% 0.99x
DropFirstAnySequence 14003 13994 -0.1% 1.00x (?)
DropFirstAnySequenceLazy 14189 14238 +0.3% 1.00x (?)
DropFirstArray 6432 6429 -0.0% 1.00x
DropFirstArrayLazy 45816 45776 -0.1% 1.00x (?)
DropFirstCountableRange 339 340 +0.3% 1.00x
DropFirstCountableRangeLazy 38321 38406 +0.2% 1.00x (?)
DropFirstSequence 12895 13009 +0.9% 0.99x
DropFirstSequenceLazy 12918 12916 -0.0% 1.00x (?)
DropLastAnyCollection 6460 6500 +0.6% 0.99x (?)
DropLastAnyCollectionLazy 45130 44887 -0.5% 1.01x (?)
DropLastAnySeqCRangeIter 44371 43954 -0.9% 1.01x (?)
DropLastAnySeqCRangeIterLazy 43765 43475 -0.7% 1.01x (?)
DropLastAnySeqCntRange 6421 6465 +0.7% 0.99x
DropLastAnySeqCntRangeLazy 6388 6429 +0.6% 0.99x
DropLastAnySequence 29036 29003 -0.1% 1.00x
DropLastAnySequenceLazy 29034 29097 +0.2% 1.00x
DropLastArray 2149 2148 -0.0% 1.00x (?)
DropLastArrayLazy 15267 15243 -0.2% 1.00x (?)
DropLastCountableRange 117 118 +0.9% 0.99x
DropLastCountableRangeLazy 12760 12761 +0.0% 1.00x (?)
DropLastSequence 28646 28615 -0.1% 1.00x (?)
DropLastSequenceLazy 28662 28619 -0.2% 1.00x
DropWhileAnyCollection 24898 24984 +0.3% 1.00x
DropWhileAnyCollectionLazy 27381 27392 +0.0% 1.00x (?)
DropWhileAnySeqCRangeIter 31777 31912 +0.4% 1.00x
DropWhileAnySeqCRangeIterLazy 27520 27521 +0.0% 1.00x (?)
DropWhileAnySeqCntRange 25150 24910 -1.0% 1.01x (?)
DropWhileAnySeqCntRangeLazy 27472 27397 -0.3% 1.00x (?)
DropWhileAnySequence 16200 16216 +0.1% 1.00x (?)
DropWhileAnySequenceLazy 12440 12415 -0.2% 1.00x (?)
DropWhileArray 9982 9974 -0.1% 1.00x (?)
DropWhileArrayLazy 17155 17277 +0.7% 0.99x
DropWhileCountableRange 6148 6136 -0.2% 1.00x
DropWhileCountableRangeLazy 26290 26409 +0.5% 1.00x (?)
DropWhileSequence 15115 15122 +0.0% 1.00x (?)
DropWhileSequenceLazy 11210 11222 +0.1% 1.00x
ErrorHandling 3846 3927 +2.1% 0.98x (?)
GlobalClass 0 0 +0.0% 1.00x
Hanoi 17427 17673 +1.4% 0.99x
HashTest 14604 14692 +0.6% 0.99x (?)
Histogram 8667 8886 +2.5% 0.98x (?)
Integrate 400 400 +0.0% 1.00x
IterateData 12818 12553 -2.1% 1.02x
Join 1262 1267 +0.4% 1.00x
LazilyFilteredArrays 1674223 1671853 -0.1% 1.00x (?)
LazilyFilteredRange 688580 689433 +0.1% 1.00x (?)
LinkedList 33131 33157 +0.1% 1.00x (?)
MapReduce 37995 38242 +0.7% 0.99x
MapReduceAnyCollection 38627 38742 +0.3% 1.00x (?)
MapReduceAnyCollectionShort 50291 50537 +0.5% 1.00x (?)
MapReduceClass 43181 43283 +0.2% 1.00x
MapReduceClassShort 54326 54628 +0.6% 0.99x (?)
MapReduceLazyCollection 33083 32988 -0.3% 1.00x (?)
MapReduceLazyCollectionShort 43699 43653 -0.1% 1.00x (?)
MapReduceLazySequence 25294 25249 -0.2% 1.00x
MapReduceSequence 41850 41971 +0.3% 1.00x
MapReduceShort 50047 50599 +1.1% 0.99x (?)
MapReduceShortString 279 284 +1.8% 0.98x
MapReduceString 2644 2684 +1.5% 0.99x (?)
Memset 44005 43995 -0.0% 1.00x (?)
MonteCarloE 135698 135214 -0.4% 1.00x
MonteCarloPi 52554 52364 -0.4% 1.00x
NSDictionaryCastToSwift 6457 6595 +2.1% 0.98x (?)
NSError 714 718 +0.6% 0.99x (?)
NSStringConversion 1314 1336 +1.7% 0.98x (?)
ObjectAllocation 634 641 +1.1% 0.99x
ObjectiveCBridgeFromNSArrayAnyObject 25178 25632 +1.8% 0.98x (?)
ObjectiveCBridgeFromNSArrayAnyObjectForced 7799 7798 -0.0% 1.00x (?)
ObjectiveCBridgeFromNSArrayAnyObjectToString 46781 44986 -3.8% 1.04x
ObjectiveCBridgeFromNSArrayAnyObjectToStringForced 38927 38339 -1.5% 1.02x (?)
ObjectiveCBridgeFromNSDictionaryAnyObject 122979 123208 +0.2% 1.00x (?)
ObjectiveCBridgeFromNSDictionaryAnyObjectForced 7649 7762 +1.5% 0.99x (?)
ObjectiveCBridgeFromNSDictionaryAnyObjectToString 102085 99633 -2.4% 1.02x (?)
ObjectiveCBridgeFromNSDictionaryAnyObjectToStringForced 93552 92575 -1.0% 1.01x (?)
ObjectiveCBridgeFromNSSetAnyObject 67914 67537 -0.6% 1.01x (?)
ObjectiveCBridgeFromNSSetAnyObjectForced 7015 7219 +2.9% 0.97x
ObjectiveCBridgeFromNSSetAnyObjectToString 78333 79711 +1.8% 0.98x (?)
ObjectiveCBridgeFromNSSetAnyObjectToStringForced 66452 66861 +0.6% 0.99x (?)
ObjectiveCBridgeFromNSString 4019 4019 +0.0% 1.00x
ObjectiveCBridgeFromNSStringForced 2731 2742 +0.4% 1.00x
ObjectiveCBridgeStubDataAppend 3690 3850 +4.3% 0.96x
ObjectiveCBridgeStubDateAccess 1030 1002 -2.7% 1.03x
ObjectiveCBridgeStubDateMutation 515 515 +0.0% 1.00x
ObjectiveCBridgeStubFromArrayOfNSString 28630 28645 +0.1% 1.00x (?)
ObjectiveCBridgeStubFromNSDate 3968 4159 +4.8% 0.95x
ObjectiveCBridgeStubFromNSDateRef 4007 4063 +1.4% 0.99x
ObjectiveCBridgeStubFromNSString 950 976 +2.7% 0.97x (?)
ObjectiveCBridgeStubFromNSStringRef 208 208 +0.0% 1.00x
ObjectiveCBridgeStubNSDataAppend 2762 2708 -2.0% 1.02x (?)
ObjectiveCBridgeStubNSDateMutationRef 15949 15785 -1.0% 1.01x (?)
ObjectiveCBridgeStubNSDateRefAccess 1223 1209 -1.1% 1.01x
ObjectiveCBridgeStubToArrayOfNSString 28807 29070 +0.9% 0.99x (?)
ObjectiveCBridgeStubToNSDate 15338 15434 +0.6% 0.99x (?)
ObjectiveCBridgeStubToNSDateRef 3350 3411 +1.8% 0.98x (?)
ObjectiveCBridgeStubToNSString 1571 1568 -0.2% 1.00x (?)
ObjectiveCBridgeStubToNSStringRef 150 149 -0.7% 1.01x
ObjectiveCBridgeStubURLAppendPath 220498 223035 +1.2% 0.99x (?)
ObjectiveCBridgeStubURLAppendPathRef 222448 223674 +0.6% 0.99x (?)
ObjectiveCBridgeToNSArray 29383 29065 -1.1% 1.01x (?)
ObjectiveCBridgeToNSDictionary 45871 45504 -0.8% 1.01x (?)
ObjectiveCBridgeToNSSet 39816 39904 +0.2% 1.00x (?)
ObjectiveCBridgeToNSString 1314 1319 +0.4% 1.00x (?)
ObserverClosure 6721 6708 -0.2% 1.00x (?)
ObserverForwarderStruct 4671 4713 +0.9% 0.99x (?)
ObserverPartiallyAppliedMethod 8125 8079 -0.6% 1.01x
ObserverUnappliedMethod 8417 8435 +0.2% 1.00x (?)
OpenClose 394 395 +0.3% 1.00x
Phonebook 24383 24663 +1.1% 0.99x
PolymorphicCalls 2899 2923 +0.8% 0.99x
PopFrontArray 7429 7483 +0.7% 0.99x (?)
PopFrontArrayGeneric 6396 6481 +1.3% 0.99x
PopFrontUnsafePointer 97019 100871 +4.0% 0.96x (?)
PrefixAnyCollection 19294 19524 +1.2% 0.99x
PrefixAnyCollectionLazy 136525 135089 -1.1% 1.01x (?)
PrefixAnySeqCRangeIter 24164 24053 -0.5% 1.00x (?)
PrefixAnySeqCRangeIterLazy 24112 24148 +0.1% 1.00x (?)
PrefixAnySeqCntRange 19185 19339 +0.8% 0.99x
PrefixAnySeqCntRangeLazy 19135 19228 +0.5% 1.00x (?)
PrefixAnySequence 11889 11799 -0.8% 1.01x (?)
PrefixAnySequenceLazy 11946 11823 -1.0% 1.01x (?)
PrefixArray 6423 6424 +0.0% 1.00x (?)
PrefixArrayLazy 45809 45800 -0.0% 1.00x (?)
PrefixCountableRange 340 339 -0.3% 1.00x
PrefixCountableRangeLazy 38350 38532 +0.5% 1.00x (?)
PrefixSequence 10766 10783 +0.2% 1.00x (?)
PrefixSequenceLazy 10767 10741 -0.2% 1.00x (?)
PrefixWhileAnyCollection 36421 36439 +0.0% 1.00x (?)
PrefixWhileAnyCollectionLazy 22597 22584 -0.1% 1.00x (?)
PrefixWhileAnySeqCRangeIter 41074 40785 -0.7% 1.01x (?)
PrefixWhileAnySeqCRangeIterLazy 22914 22884 -0.1% 1.00x (?)
PrefixWhileAnySeqCntRange 36504 36457 -0.1% 1.00x
PrefixWhileAnySeqCntRangeLazy 22620 22617 -0.0% 1.00x (?)
PrefixWhileAnySequence 29602 29606 +0.0% 1.00x (?)
PrefixWhileAnySequenceLazy 11343 11359 +0.1% 1.00x (?)
PrefixWhileArray 16993 17012 +0.1% 1.00x (?)
PrefixWhileArrayLazy 14770 14766 -0.0% 1.00x (?)
PrefixWhileCountableRange 17678 17604 -0.4% 1.00x
PrefixWhileCountableRangeLazy 21851 21879 +0.1% 1.00x
PrefixWhileSequence 28404 28386 -0.1% 1.00x (?)
PrefixWhileSequenceLazy 10536 10400 -1.3% 1.01x
Prims 8940 9010 +0.8% 0.99x (?)
ProtocolDispatch 7144 7000 -2.0% 1.02x
ProtocolDispatch2 491 491 +0.0% 1.00x
RC4 19920 19892 -0.1% 1.00x (?)
RGBHistogram 33868 33852 -0.0% 1.00x (?)
RGBHistogramOfObjects 99118 99077 -0.0% 1.00x (?)
RangeAssignment 5750 5764 +0.2% 1.00x (?)
RecursiveOwnedParameter 9651 9637 -0.1% 1.00x
ReversedArray 590 588 -0.3% 1.00x
ReversedBidirectional 75290 75109 -0.2% 1.00x (?)
ReversedDictionary 27028 27033 +0.0% 1.00x (?)
SetExclusiveOr 21435 21457 +0.1% 1.00x (?)
SetExclusiveOr_OfObjects 41321 41255 -0.2% 1.00x (?)
SetIntersect 10837 10828 -0.1% 1.00x
SetIntersect_OfObjects 11187 11171 -0.1% 1.00x (?)
SetIsSubsetOf 1643 1652 +0.5% 0.99x
SetIsSubsetOf_OfObjects 1526 1522 -0.3% 1.00x (?)
SetUnion 12199 12276 +0.6% 0.99x
SetUnion_OfObjects 29614 29554 -0.2% 1.00x
SevenBoom 1598 1603 +0.3% 1.00x (?)
Sim2DArray 30063 30016 -0.2% 1.00x (?)
SortLargeExistentials 17871 17958 +0.5% 1.00x
SortLettersInPlace 2876 2872 -0.1% 1.00x (?)
SortSortedStrings 1413 1401 -0.8% 1.01x
SortStrings 2479 2486 +0.3% 1.00x (?)
SortStringsUnicode 8791 9208 +4.7% 0.95x
StackPromo 101498 104171 +2.6% 0.97x (?)
StaticArray 4576 4585 +0.2% 1.00x
StrComplexWalk 6954 6878 -1.1% 1.01x
StringBuilder 2847 2850 +0.1% 1.00x (?)
StringBuilderLong 1140 1124 -1.4% 1.01x (?)
StringEdits 495292 492170 -0.6% 1.01x (?)
StringEqualPointerComparison 9778 9630 -1.5% 1.02x
StringFromLongWholeSubstring 15478 15475 -0.0% 1.00x (?)
StringFromLongWholeSubstringGeneric 268 268 +0.0% 1.00x
StringHasPrefix 1758 1724 -1.9% 1.02x
StringHasPrefixUnicode 16246 16293 +0.3% 1.00x
StringHasSuffix 1849 1881 +1.7% 0.98x
StringHasSuffixUnicode 63845 63880 +0.1% 1.00x (?)
StringInterpolation 12264 12358 +0.8% 0.99x
StringMatch 31150 31473 +1.0% 0.99x (?)
StringUTF16Builder 3691 3696 +0.1% 1.00x (?)
StringWalk 4259 4234 -0.6% 1.01x (?)
StringWithCString 133467 133623 +0.1% 1.00x (?)
SubstringFromLongString 175 175 +0.0% 1.00x
SubstringFromLongStringGeneric 395 397 +0.5% 0.99x
SuffixAnyCollection 6453 6485 +0.5% 1.00x
SuffixAnyCollectionLazy 45923 44972 -2.1% 1.02x
SuffixAnySeqCRangeIter 41899 41492 -1.0% 1.01x (?)
SuffixAnySeqCRangeIterLazy 41689 41431 -0.6% 1.01x
SuffixAnySeqCntRange 6411 6462 +0.8% 0.99x
SuffixAnySeqCntRangeLazy 6386 6423 +0.6% 0.99x
SuffixAnySequence 26893 26886 -0.0% 1.00x (?)
SuffixAnySequenceLazy 26892 26838 -0.2% 1.00x (?)
SuffixArray 2152 2151 -0.0% 1.00x
SuffixArrayLazy 15261 15239 -0.1% 1.00x (?)
SuffixCountableRange 118 117 -0.8% 1.01x
SuffixCountableRangeLazy 12774 12760 -0.1% 1.00x
SuffixSequence 26479 26453 -0.1% 1.00x (?)
SuffixSequenceLazy 26442 26436 -0.0% 1.00x (?)
SuperChars 114311 114387 +0.1% 1.00x (?)
TwoSum 4353 4324 -0.7% 1.01x (?)
TypeFlood 163 169 +3.7% 0.96x (?)
UTF8Decode 36870 36898 +0.1% 1.00x (?)
Walsh 11972 11932 -0.3% 1.00x (?)
XorLoop 23705 23711 +0.0% 1.00x (?)
**Hardware Overview** Model Name: Mac mini Model Identifier: Macmini7,1 Processor Name: Intel Core i5 Processor Speed: 2.8 GHz Number of Processors: 1 Total Number of Cores: 2 L2 Cache (per Core): 256 KB L3 Cache: 3 MB Memory: 16 GB

@dabrahams dabrahams merged commit 2655dd4 into master May 18, 2017
@dabrahams dabrahams deleted the replace-integer-parsing branch May 18, 2017 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants