Commit Graph

38 Commits

Author SHA1 Message Date
Valeriy Van
a5b1082ba3 Suppress warnings in benchmark
warning: heterogeneous collection literal could only be inferred to '[Any]'; add explicit type annotation if this is intentional
2023-01-18 21:28:29 +02:00
Karoy Lorentey
8944591e71 [benchmark] Simplify benchmark registration 2021-09-15 22:08:08 -07:00
Karoy Lorentey
203dc55b60 [benchmark] CheckResults → check
Capitalizing function names is against Swift naming conventions.
2021-09-15 22:08:07 -07:00
LucianoAlmeida
c3c1e6df8d [Benchmarks][stdlib] Adding an extra benchmark for set isDisjoint for disjoint sets of different size 2021-09-12 21:56:54 -03:00
Pavol Vaskovic
81db10cdc9 [benchmark] Disable tests with overlong runtime
Temporarily disable benchmarks that run for too long without optimizations pending in set-on-fire branch.
2019-05-12 12:58:02 +02:00
Pavol Vaskovic
07f373d965 [benchmark] Set.subtracting.Seq increased workload
The workload multipliers need to be increased in order to accommodate the pending improvements from `lorentey:set-on-fire`, so that these benchmark don't drop to under 20 μs runtimes when those optimizations kick in.

These multiplier will differ from those used on Set.subtracting.Set by a factor of 5.
2019-05-10 23:54:31 +02:00
Pavol Vaskovic
a75f2d7536 [benchmark] Set.Seq showcase optimized early exits 2019-05-10 22:54:01 +02:00
Keita Nonaka
cecbb1491e minor fixes 2019-05-10 14:43:42 -04:00
Keita Nonaka
b1a96e863d Variants for Set Sequence Methods 2019-05-07 18:29:24 -04:00
Keita Nonaka
09da304a71 add benchmark of set isStrictSubset (#23690)
* add benchmark of set isStrictSubset

* fix SetIsStrictSubsetBox

* bug fixes

* change benchmark names to follow naming convention

* fix benchmark names
2019-04-16 20:34:28 -07:00
Pavol Vaskovic
25729f89fa [benchmark] SetTests Legacy Factor 4 Legacy Tests 2019-02-01 16:45:12 +01:00
Pavol Vaskovic
b4f1f4747d [benchmark] Remove 0s from Empty names. 2019-01-10 18:04:10 +01:00
Pavol Vaskovic
b4d8172228 [benchmark] Adjust loop multipliers Set.*
Increase the multipliers to get reliably measurable runtimes.
2019-01-09 12:22:48 +01:00
Pavol Vaskovic
c011bd70c3 [benchmark] Add swapped Set.*.Empty variants
Let’s also test Empty sets as the right-hand side parameter.
2019-01-08 21:54:59 +01:00
Pavol Vaskovic
84580f88fe [benchmark] Adjust new tests to Naming Convention
Most of these recently added benchmarks have too low loop multiplier that results in near zero or zero measured runtime.

Since fixing this will change the runtimes, it is also an opportunity to properly apply the new naming convention.
2019-01-08 21:53:18 +01:00
Luciano Almeida
2bc5623bdf [stdlib] Resolving some FIXME comments on Set type. (#20631)
* Fixing some fixmes on stdlib Set

* Adding @inline attr

* Fixing spaces

* Adding isEmpty as fast path in other places where is possible.

* Quotes on variable name on comment.

* Update stdlib/public/core/Set.swift

Co-Authored-By: LucianoPAlmeida <passos.luciano@outlook.com>

* Adding benchmark for isDisjoint Set method

* Adding empty sets to benchmark

* Fixing the factor on benchmarks and naming warnings for empty 5 words
2018-12-14 22:11:12 -06:00
Karoy Lorentey
11b290c452 [benchmark] SetTests: Move legacy benchmarks to end of list. 2018-08-24 22:35:41 +01:00
Karoy Lorentey
09946d074d [benchmark] SetTest: Add tests for more operations and more cases
- Isolate legacy tests. Add new tests for the same operations, with updated iteration counts and names.
- Rename new tests to follow a consistent naming scheme.
- Add tests for Set.subtracting.
- Add tests on integer sets with 50% and 100% overlap. (isSubset, intersection, union, symmetricDifference, subtracting)
2018-08-24 22:34:05 +01:00
Karoy Lorentey
91dc5c6a73 [benchmark] SetTests: Explain input sets 2018-08-24 17:54:35 +01:00
Karoy Lorentey
a154e46fe1 [benchmark] SetTests: Re-add original tests
The code isn’t the same, but comparisons with previous releases will still be useful (as long as timings match with the original code).
2018-08-24 11:59:54 +01:00
Karoy Lorentey
6426e7e14c [benchmark] SetTests: Better parametrization, separate setup 2018-08-24 11:58:33 +01:00
Karoy Lorentey
ebb5adffba [benchmark] Fix benchmarks for Set operations
- Don’t use a random number generator
- Ensure there is a 25% overlap between sets. Original benchmarks tested non-overlapping sets only.
- Change names; results aren’t directly comparable.
2018-08-23 19:53:31 +01:00
Karoy Lorentey
ec91f6b6d6 [benchmark] Replace hashValue implementations with hash(into:)
This gives us a better picture of expected hashing performance.

Add a new benchmark to track legacy hashValue performance.
2018-04-25 19:17:16 +01:00
Ben Cohen
3b4eacc3a8 Update benchmarks to Swift 4 (#14623) 2018-02-14 17:26:58 -08:00
Max Moiseev
1dd9d61ded Move all benchmarks to use registerBenchmark and BenchmarkInfo 2017-10-03 18:04:56 -07:00
Dave Abrahams
e32fb8badb Remove interpolated strings from benchmark CheckResults
This call was in many cases skewing the benchmark results.

Note: Intentionally staging this in without removing the old overload initially.
2017-05-05 10:25:02 -07:00
therealbnut
0e2ac90f95 Fix redundant constaints warnings with Box types 2017-03-26 11:33:27 +11:00
practicalswift
6d1ae2a39c [gardening] 2016 → 2017 2017-01-06 16:41:22 +01:00
practicalswift
797b80765f [gardening] Use the correct base URL (https://swift.org) in references to the Swift website
Remove all references to the old non-TLS enabled base URL (http://swift.org)
2016-11-20 17:36:03 +01:00
Dmitri Gribenko
e3ea6058bc Fix warnings in benchmarks 2016-07-28 00:56:50 -07:00
practicalswift
8287c5dfca [gardening] Remove trailing semicolons.
Inspiration: 425138c56e
2016-07-19 00:04:53 +02:00
Nate Cook
21df5f203a [stdlib] Fix errant tests
- A benchmark method was renamed during the Set API batch revisions
- The SourceKit test that includes stdlib docs needed a new fixture
2016-04-27 11:13:44 -05:00
Dave Abrahams
debde16e2c Merge set-api branch into swift-3-indexing-model 2016-04-26 15:56:42 -07:00
practicalswift
66183cdbf7 [gardening] Fix unjustified spacing 2016-04-07 10:10:24 +02:00
Manav Gabhawala
7928140f79 [SE-0046] Implements consistent function parameter labels by discarding extraneous parameter names and adding _ where necessary 2016-04-06 20:21:58 -04:00
Arnold Schwaighofer
ee3e7a58b3 [benchmark] Add versions of the set tests with class element types 2016-03-13 08:58:59 -07:00
Daniel Duan
2bc78b8c09 [stdlib] update for 'inout' adjustment (SE-0031) 2016-02-26 12:02:29 -08:00
Luke Larson
0356ec8ec3 Add Swift Benchmark Suite 2016-02-08 10:47:58 -08:00