Max Moiseev
02006f20bc
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-03-09 16:05:03 -08:00
Mishal Shah
046f0636b2
Fix compare_perf_tests.py to support python 3
2016-03-09 14:02:16 -08:00
Michael Gottesman
9c998d7ce8
[leaks-runner] Get more accurate results by subtracting two differing iteration counts.
...
Previously, we had some white listing lists for allocations that were assigned
into globals during a benchmarks running. Now we instead run two different
iterations with the second running an additional time. Then we subtract the
counts.
This enables me to get rid of the whitelist.
2016-03-09 12:56:15 -08:00
Michael Gottesman
ccc8791581
[leaks-checker] Add support for filtering tests and changing the number of samples/iters run. This will make it easy to bisect using the Benchmark_LeaksRunner script.
2016-03-09 10:28:00 -08:00
Arnold Schwaighofer
e9ac8c876a
Add a performance unit test for stack promotion
2016-03-09 07:30:00 -08:00
Michael Gottesman
e232456bf0
[leaks-runner] Print out the RC delta with the results.
2016-03-09 00:37:14 -08:00
practicalswift
30b66ea036
Merge pull request #1584 from practicalswift/python-3-compatible-print
...
[Python] Use Py3k compatible print operator: print "foo" → print("foo")
2016-03-09 08:00:49 +01:00
Michael Gottesman
0645b30caf
Fix deadlock in leaks runner script.
2016-03-08 22:18:36 -08:00
Brian Gesiak
c9000af795
Merge pull request #1526 from practicalswift/fix-pep8-violations-ii
...
[Python] Fix five classes of PEP-8 violations (E101/E111/E128/E302/W191)
2016-03-08 23:55:46 -05:00
practicalswift
0fd0c48648
[Python] Use Py3k compatible print operator: print "foo" → print("foo")
2016-03-08 23:10:52 +01:00
Max Moiseev
1fae0d1325
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-03-08 12:48:48 -08:00
practicalswift
e2de5c2202
[Python] Fix blind except: statements
...
Make sure all Python code in the repo specifies which exceptions to
catch when using `except:`.
Regressions can be catched using `flake8-blind-except` going forward.
2016-03-08 11:08:28 +01:00
practicalswift
265835fdfc
[Python] Use consistent import ordering for Python code
...
Ordering used:
1.) standard library imports
2.) third party imports
3.) local package imports
Each group is individually alphabetized.
2016-03-07 23:25:16 +01:00
practicalswift
183da818df
[Python] Fix five classes of PEP-8 violations (E101/E111/E128/E302/W191)
...
* E101: indentation contains mixed spaces and tabs
* E111: indentation is not a multiple of four
* E128: continuation line under-indented for visual indent
* E302: expected 2 blank lines, found 1
* W191: indentation contains tabs
2016-03-07 22:36:23 +01:00
Max Moiseev
7fe6916bf6
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-03-07 12:10:47 -08:00
practicalswift
5b2800225d
[gardening] Fix recently introduced typos
...
Fixed:
* perfomance → performance
* requirments → requirements
* satisified → satisfied
* template template → template
2016-03-04 11:10:50 +01:00
Chris Lattner
d197cc5022
Merge pull request #1531 from practicalswift/fix-headers
...
[gardening] Fix recently introduced file headers. Also: "–" → "--".
2016-03-03 16:18:10 -08:00
Michael Gottesman
47888558be
[perftests] Fix thinko due to my brains failure to remember to push a new version of this commit.
2016-03-03 15:51:03 -08:00
Michael Gottesman
af9d4342eb
Merge pull request #1529 from gottesmm/sanity-check-perftest-statistics
...
[perftests] Add some sanity asserts to the low level perf test suite …
2016-03-03 15:49:01 -08:00
practicalswift
b9dd782e4b
[gardening] Fix recently introduced file header. Also: "–" → "--".
2016-03-03 23:10:43 +01:00
Karoly Lorentey
d921b4e1bc
[benchmark][SR-871] Convert duration strings to integers before calculating min/max
...
Benchmark_Driver used string comparison to calculate the minimum and maximum
of durations in benchmark results, sometimes leading to wildly inaccurate reports.
2016-03-03 22:34:54 +01:00
Max Moiseev
cf4bafe9e3
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-03-03 13:22:03 -08:00
Michael Gottesman
afece1c8c2
[perftests] Add some sanity asserts to the low level perf test suite driver results.
...
This just consists of ensuring that:
1. min <= max.
2. min <= mean.
3. min <= median.
4. max >= mean.
5. max >= median.
2016-03-03 13:11:33 -08:00
Patrick Pijnappel
3d58bc0d82
Adjust UTF8Decode benchmark to run in <1s
...
Under Debug -Onone
2016-03-03 18:17:09 +11:00
lplarson
e05fc61533
Merge pull request #1493 from PatrickPijnappel/utf8-benchmark
...
Add benchmark for UTF-8 decoding
2016-03-02 14:44:12 -08:00
lplarson
d37ddcf8bd
Merge pull request #1514 from PatrickPijnappel/patch-1
...
Clarify usage of N in benchmark README
2016-03-02 14:41:48 -08:00
Patrick Pijnappel
4754285879
Clarify usage of N in benchmark README
2016-03-03 08:55:21 +11:00
practicalswift
e33f1747a9
[Python] Improve Python consistency: "variable in function should be lowercase" (N806)
...
The repo contains roughly 80 Python scripts. "snake_case" naming is used for
local variables in all those scripts. This is the form recommended by the PEP 8
naming recommendations (Python Software Foundation) and typically associated
with idiomatic Python code.
However, in nine of the 80 scripts there were at least one instance of
"camelCase" naming prior to this commit.
This commit improves consistency in the Python code base by making sure that
these nine remaining files follow the variable naming convention used for
Python code in the project.
References:
* PEP 8: https://www.python.org/dev/peps/pep-0008/
* pep8-naming: https://pypi.python.org/pypi/pep8-naming
2016-03-02 18:56:47 +01:00
Patrick Pijnappel
6dc0a111f1
Minimize influence of setup time for UTF-8 decoding benchmark
2016-03-02 22:08:26 +11:00
Max Moiseev
859db53d87
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-03-01 12:56:26 -08:00
Patrick Pijnappel
0b307a313c
Make UTF-8 decode benchmark use more realistic cases
2016-03-01 20:31:32 +11:00
Patrick Pijnappel
6a5fc126e2
Add benchmark for UTF-8 decoding
2016-03-01 16:52:55 +11:00
practicalswift
f6d6585ee0
[Python] Improve Python consistency: Use function_name(…) throughout (PEP8)
2016-02-29 22:49:19 +01:00
Max Moiseev
e48f452a2e
Merge remote-tracking branch 'origin/swift-3-api-guidelines' into swift-3-api-guidelines
2016-02-29 12:15:33 -08:00
Max Moiseev
a49dab6bf8
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-29 12:08:52 -08:00
Andrew Trick
6bcbde2f1c
[benchmark] Fix the comparison script to report possibly spurious data points.
...
When comparing scores from either multiple samples, or multiple runs,
print (?) if scores for the configurations being compared have
overlapping ranges.
2016-02-28 00:29:49 -08:00
Andrew Trick
4c3f4c617d
Change benchmark score output to (?) for likely bogus data.
2016-02-27 21:56:29 -08:00
Michael Gottesman
8d5a08cedd
[perftest][cmake] Standardize on using ${source} instead of ${srcdir}/${module_name_path}.swift.
...
This is an intermediate commit in a series of commits towards being able to
build the perf test suite from *.sib files.
Doing so will enable us to:
1. Stress the serialization pipeline.
2. Provide an interesting test case for verifying that executables compiled
from *.sib yield the same object files as if we compiled directly to *.o files.
Keep in mind this is a longer term effort that I am doing on the side.
2016-02-26 16:28:28 -08:00
Daniel Duan
2bc78b8c09
[stdlib] update for 'inout' adjustment (SE-0031)
2016-02-26 12:02:29 -08:00
Jordan Rose
b319e3da32
stdlib: Adjust to insert(contentsOf:at:) and append(contentsOf:)
...
instead of insertContents(of:at:) and appendContents(of:),
originally insertContentsOf(_:at:) and appendContentsOf(_:)
per internal discussion.
2016-02-25 12:50:39 -08:00
Dmitri Gribenko
24218e08c3
Fix build failure after String API changes
2016-02-24 14:09:04 -08:00
Dmitri Gribenko
e81f99d7ea
stdlib: Sequence.startsWith() => .starts(with:)
2016-02-23 18:12:09 -08:00
Dmitri Gribenko
f0633ce5a9
stdlib: Sequence.iterator() => .makeIterator()
2016-02-23 13:52:30 -08:00
Max Moiseev
4b9eab6288
appendContentsOf => appendContents(of:)
2016-02-22 18:02:04 -08:00
Max Moiseev
481bcabcba
[stdlib] API naming guidelines applied to split and join
...
- `separator` label for first argument of `split`
- `join` and related types are renamed to `joined`
2016-02-22 15:43:33 -08:00
Dmitri Gribenko
f27315b6f8
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-20 15:36:04 -08:00
Dmitri Gribenko
3d3d4540e1
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-20 14:37:49 -08:00
practicalswift
e395ea0f0e
[Python] Follow standard Python docstrings conventions (PEP-0257).
...
https://www.python.org/dev/peps/pep-0257/
2016-02-20 17:11:57 +01:00
Dmitri Gribenko
51ce68ce0f
Fix benchmarks after Optional.None => .none rename
2016-02-20 00:55:35 -08:00
Max Moiseev
40b1a0b7e0
[stdlib] all sorts of require renamed back to precondition
2016-02-19 18:21:29 -08:00