Joe Groff
6f64c4ce12
Update validation tests for raw -> rawValue change.
...
Swift SVN r21893
2014-09-11 22:27:01 +00:00
Joe Groff
419ba5cbea
Change RawRepresentable to use failable initializers and property requirements.
...
Redefine the RawRepresentable protocol to use an 'init?' method instead of 'fromRaw(Raw)', and a 'raw' get-only property instead of 'toRaw()'. Update the compiler to support deriving conformances for enums and option sets with the new protocol. rdar://problem/18216832
Swift SVN r21762
2014-09-06 18:40:14 +00:00
Andrew Trick
67bf9f97f8
#ifdef to allow benchmarking C version of richards.
...
Swift SVN r21127
2014-08-09 02:32:03 +00:00
Jordan Rose
b6818046a8
Eliminate optimization levels 0-3 in favor of -Onone/-O/-Ofast.
...
We were already effectively doing this everywhere /except/ when building
the standard library (which used -O2), so just use the model we want going
forward.
Swift SVN r20455
2014-07-24 01:12:59 +00:00
Andrew Trick
2327fa4b86
Update benchmark code, lfsr.swift.
...
Swift SVN r20143
2014-07-18 06:52:14 +00:00
Andrew Trick
f6378f9af1
richards benchmark: Use fatalError.
...
Swift SVN r19546
2014-07-04 00:33:36 +00:00
Andrew Trick
d30c430b11
Fix broken asserts in richards benchmark.
...
Swift SVN r19545
2014-07-04 00:27:39 +00:00
Andrew Trick
f8584af23b
Update richards.swift
...
Swift SVN r19389
2014-07-01 04:35:11 +00:00
Nadav Rotem
c9d9b530a5
Update the tests to make them compile
...
Swift SVN r19096
2014-06-23 19:31:04 +00:00
Dave Abrahams
acc2c3be40
[stdlib] Prepare array sort for value semantics
...
Sorting was a bit of a mess; we had sort functions doing in-place
mutation /and/ returing the value, and people were confused by the
asymmetry of Array's sort() method with other higher-level methods.
Fixes <rdar://problem/17185815> sort([]T, f) mutates the original array
<rdar://problem/17225190> The Array.sort() method should return a sorted array
Swift SVN r18922
2014-06-16 13:48:43 +00:00
Andrew Trick
498f9d8243
Update bst.swift benchmark
...
Swift SVN r18713
2014-06-05 19:18:28 +00:00
Manman Ren
9e263e79c6
Benchmark: make it build.
...
Swift SVN r18671
2014-05-30 19:45:26 +00:00
Nadav Rotem
6c6b6845a9
Re-enable ARC for the Phonebook program.
...
Swift SVN r18534
2014-05-21 23:30:33 +00:00
Nadav Rotem
95a03195df
Re-enable ARC for RC4.
...
Swift SVN r18533
2014-05-21 23:28:42 +00:00
Nadav Rotem
65c6b13101
asUTF8() -> .utf8
...
Swift SVN r18527
2014-05-21 22:36:36 +00:00
Arnold Schwaighofer
8f52edd1b4
De-ARCify RC4
...
Swift SVN r18500
2014-05-21 19:12:27 +00:00
Manman Ren
7a4519d9d9
Remove unnecessary escape in benchmarks.
...
Swift SVN r18461
2014-05-20 19:29:31 +00:00
Arnold Schwaighofer
d168ca8d63
Make Benchmark.swift compile again
...
Swift SVN r18460
2014-05-20 19:24:01 +00:00
Nadav Rotem
bd88057b36
Remove ARC and place manual retains.
...
Swift SVN r18459
2014-05-20 19:20:18 +00:00
Nadav Rotem
345e6775a6
Re-enable ARC and get rid of the slow property accesses.
...
Swift SVN r18175
2014-05-16 04:47:26 +00:00
Ted Kremenek
9eea282719
Switch range operators ".." and "...".
...
- 1..3 now means 1,2
- 1...3 now means 1,2,3
Implements <rdar://problem/16839891>
Swift SVN r18066
2014-05-14 07:36:00 +00:00
Nadav Rotem
6aa21dde7a
Increase the number of iterations in the benchmark to 10k
...
Swift SVN r18000
2014-05-13 08:08:55 +00:00
Arnold Schwaighofer
9c0bd85e63
Add an ObjC version of RC4
...
Swift SVN r17976
2014-05-12 23:41:11 +00:00
Ted Kremenek
fad874708e
Adjust test cases.
...
Swift SVN r17964
2014-05-12 22:01:52 +00:00
Nadav Rotem
9744e23fc6
small cleanups
...
Swift SVN r17881
2014-05-11 19:22:56 +00:00
Nadav Rotem
83a15eff24
Add a python RC4 benchmark and change the Swift implementation to match
...
Swift SVN r17878
2014-05-11 18:49:52 +00:00
Nadav Rotem
057d998c35
Move the phonebook benchmark into a new directory
...
Swift SVN r17876
2014-05-11 18:19:47 +00:00
Nadav Rotem
a9ff0a3d24
Migrate the test to manual reference counting.
...
Swift SVN r17685
2014-05-08 05:15:34 +00:00
Nadav Rotem
fa0afad07f
Add a python version for the phonebook benchmark
...
Swift SVN r17601
2014-05-07 04:35:48 +00:00
Nadav Rotem
72c6c11a3c
Try to make ObjC faster
...
Swift SVN r17588
2014-05-06 23:55:30 +00:00
Nadav Rotem
58bc00537a
Use the ruby <=> comparator for strings.
...
Swift SVN r17533
2014-05-06 06:42:22 +00:00
Nadav Rotem
9f169eef45
Convert the Ruby phonebook benchmark to english firstname+lastname.
...
Swift SVN r17509
2014-05-06 00:33:57 +00:00
Nadav Rotem
3a90e8e951
Convert the phonebook benchmark to fistname+lastname comparison.
...
Swift SVN r17508
2014-05-06 00:28:24 +00:00
Nadav Rotem
f530cf9a33
Change the number of iterations to 5000
...
Swift SVN r17296
2014-05-03 00:35:42 +00:00
Nadav Rotem
c91255b125
Remove the number field
...
Swift SVN r17295
2014-05-03 00:34:41 +00:00
Nadav Rotem
9f7e5844ae
Port the ObjC string benchmark to use phonebook records.
...
Swift SVN r17294
2014-05-03 00:34:10 +00:00
Nadav Rotem
c78daeef4d
Make the phone number field an Int.
...
Swift SVN r17291
2014-05-03 00:01:09 +00:00
Nadav Rotem
962670986b
Delete the python version of the test.
...
Swift SVN r17276
2014-05-02 21:42:46 +00:00
Nadav Rotem
f318c72056
Convert the string sort benchmark to a phonebook sorting benchmark.
...
Swift SVN r17275
2014-05-02 21:42:12 +00:00
Nadav Rotem
d83e55146d
Convert the ObjC and the Swift tests to unicode.
...
Swift SVN r17263
2014-05-02 18:51:51 +00:00
Nadav Rotem
073e80092b
Convert the string sort benchmark data to unicode to make sure the slow path is taken in all programs.
...
Swift SVN r17262
2014-05-02 18:45:11 +00:00
Nadav Rotem
f8cb1fd6d1
Add a Ruby string sort benchmark.
...
Swift SVN r17259
2014-05-02 17:36:53 +00:00
Nadav Rotem
197fdb6775
Make the python program sort unicode strings to match the ObjC and Swift implementation.
...
Swift SVN r17127
2014-05-01 00:07:44 +00:00
Andrew Trick
ddb4fef7ca
Well-known kernel simulator benchmark, in swift, JS and C.
...
I chose this benchmark in order to stress enums and optionals. It is
also one where we see considerable gains on JS with LLVM after getting
the high-level optimization out of the way.
I forsee writing multiple versions of this benchmark, gradually using
more advanced swift features. This first version is meant to be
structurally equivalent to the C code, but using key swift features:
optionals, enums, computed properties.
I don't have recent numbers because it currently exposes an
optimization bug which will be filed shortly.
Swift SVN r17045
2014-04-29 21:54:07 +00:00
Andrew Trick
c5c7479014
Simple non-array binary search tree benchmark.
...
This includes a very simple pseudo-random number generator, which can
be used to drive benchmarks.
This doesn't include an official benchmark driver other than a trivial
test routine that generates the tree.
swift -emit-module -emit-library lfsr.swift -o liblfsr.dylib -O3
swift bst.swift -I. -L. -llfsr -O3
This is currently exposing an optimizer bug which will be filed shortly.
Swift SVN r17044
2014-04-29 21:54:06 +00:00
Nadav Rotem
aa7dc5d612
Add the ObjC version of the linked-list demo.
...
Swift SVN r16602
2014-04-21 04:25:04 +00:00
Nadav Rotem
ef742f3cc0
Make the tests less memory bound. We are now 27x faster than python.
...
Swift SVN r16580
2014-04-20 04:29:00 +00:00
Nadav Rotem
773692a7de
Add a test program that allocates and sums the first 1M elements in a linked list.
...
We beat python by only 2x, but we can add a few peepholes to Optional and reduce the list size to make sure we are not memory bound.
Swift SVN r16575
2014-04-20 02:14:44 +00:00
Nadav Rotem
5bfed07e16
Add a python version of the StringSort benchmark.
...
Swift SVN r16233
2014-04-11 22:42:50 +00:00
Dave Zarzycki
40237623a7
Benchmark: code feedback for Nadav
...
Swift SVN r16229
2014-04-11 21:44:26 +00:00