Commit Graph

902 Commits

Author SHA1 Message Date
David Smith
a861fc117b Add benchmarks for withContiguousStorageIfAvailable on bridged NSArrays (#75215) 2024-07-16 00:24:23 -07:00
Alexander Cyon
cb55dbbb96 Fix typo 'defne' -> 'define'. 2024-07-07 18:22:14 +02:00
Alexander Cyon
9d04bfd848 [benchmark] Fix typos 2024-07-06 13:17:13 +02:00
Karoy Lorentey
ad3d3ad045 [benchmark] Update/fix availability checks 2024-06-13 18:00:45 -07:00
David Smith
5b81405a75 Add new benchmarks for UTF16 transcoding (#74229) 2024-06-08 15:21:22 -07:00
Mykola Pokhylets
6298d41edf Reapply "Fix quadratic performance of the ListMerger in specific usage pattern"
This reverts commit 2640ff613b.
2024-05-30 13:08:42 +02:00
Andrew Trick
2640ff613b Revert "Fix quadratic performance of the ListMerger in specific usage pattern" 2024-05-21 16:23:57 -07:00
Mykola Pokhylets
69f54501d4 Added benchmark for adding jobs to default actor when visiting a tree 2024-05-10 11:05:22 +02:00
Nate Cook
38e1370884 Revert "Revert count(where:)" (#70816)
* Revert "Revert count(where:)"

This reverts commit 779ea19a6a.

Now that SE-0220 has been re-accepted, this adds the `count(where:)` 
Sequence method to the standard library.
2024-03-29 13:53:53 -05:00
Guillaume Lessard
7ed54c903c Merge pull request #71786 from oscbyspro/better-joined-distance-from-to-benchmarks
FlattenSequence/distance(from:to:) benchmarks.
2024-02-24 16:59:25 -08:00
Oscar Byström Ericsson
8cfbb62a2e FlattenSequence/distance(from:to:) benchmarks (v7).
The benchmarks took too long to perform, so I reduced the size of each payload.
2024-02-24 08:18:33 +01:00
Oscar Byström Ericsson
7ecb987ad5 FlattenSequence/distance(from:to:) benchmarks (v6).
1. The auto-generated [BenchmarkInfo] was given the wrong name.
2024-02-23 10:11:18 +01:00
Oscar Byström Ericsson
cef7c43daf FlattenSequence/distance(from:to:) benchmarks (v5).
1. Replaced occurrences of Repeated<T> with Array<T>.
2024-02-22 20:45:03 +01:00
Oscar Byström Ericsson
dff27479bf FlattenSequence/distance(from:to:) benchmarks (v4).
1. Added some sequential tests with String as the inner collection.
2024-02-22 17:31:28 +01:00
Oscar Byström Ericsson
6829f808a0 FlattenSequence/distance(from:to:) benchmarks (v3).
1. Parameterized benchmark dependencies, per code review.
2024-02-22 17:25:29 +01:00
Oscar Byström Ericsson
0ea89852da FlattenSequence/distance(from:to:) benchmarks (#71648). 2024-02-21 17:33:30 +01:00
David Smith
f1feba0e42 Eytzingerize word break data (#71731)
Switch word break property searching to Eytzinger binary search
2024-02-20 22:49:34 -08:00
Tim Kientzle
dc7a3d38cd Fix HTTP2StateMachine benchmark
The optimizer managed to eliminate this entire benchmark,
resulting in useless 0 second timings.

I made a couple of changes to ensure the optimizer cannot
eliminate the loop:
* The individual checks now actually use the loop parameter
* `identity()` is used to ensure conservatism

While here, I reduced the loop count since these benchmarks seem
to run for a long time.
2023-09-22 17:50:51 -07:00
Manu
02b5fa2c8e Fix some typos in the codebase 2023-08-31 18:50:10 -03:00
Max Desiatov
21a2b78801 stdlib/benchmark: add canImport(Musl) where needed (#67120)
This allows compiling stdlib and benchmarks when targeting musl instead of Glibc.
2023-07-05 19:55:08 +01:00
Lucy Satheesan
32745c3c56 [benchmark] half Array.removeAll bench size 2023-05-23 21:10:11 -07:00
Lucy Satheesan
6a1129f68a [benchmark] rename Array.removeAll benchmarks 2023-05-23 17:10:32 -07:00
Lucy Satheesan
008ed2fa95 [benchmark] clean up setup for ArrayRemoveAll 2023-05-23 14:14:14 -07:00
Lucy Satheesan
d489ba2740 [benchmark] check results only once in ArrayRemoveAll 2023-05-23 11:22:47 -07:00
Lucy Satheesan
51c62aee19 [benchmark] add removeAll(keepingCapacity: true) non-unique test 2023-05-23 11:05:59 -07:00
David Smith
4d3c75631e Wow, even further I guess 2023-05-12 17:22:08 -07:00
David Smith
708c5c4381 Nah let's go a little lower 2023-05-12 16:31:08 -07:00
David Smith
92bba63159 Ok I think this should be right 2023-05-12 16:29:23 -07:00
David Smith
a63031c636 Scale benchmark down… 2023-05-12 15:39:12 -07:00
David Smith
b024a560ed Fix thinko, thank you Nate! 2023-05-12 14:14:53 -07:00
David Smith
4f363f72f1 Try to thwart the optimizer 2023-05-10 10:55:37 -07:00
David Smith
d5d97ad26e Further benchmark scaling 2023-05-10 02:31:03 -07:00
David Smith
0ddc90b355 Further benchmark scaling 2023-05-10 01:25:38 -07:00
David Smith
71ed988d27 Scale benchmarks 2023-05-09 16:29:56 -07:00
David Smith
7d234d76ea More build fixes 2023-05-09 13:50:41 -07:00
David Smith
6cb9e5cfdd Build fixes 2023-05-09 11:27:04 -07:00
David Smith
78e406c376 Add a few basic smoke test benchmarks for the default RangeReplaceableCollection append methods 2023-05-09 09:41:44 -07:00
Valeriy Van
e99a45b15b Reduce loop coefficient to 200 2023-03-02 09:57:57 +02:00
Valeriy Van
b79e1d5c31 Rename benchmark to fit into 40 characters limit 2023-03-02 09:55:25 +02:00
Valeriy Van
d947e10dd2 Put back getString call inside benchmarking loop 2023-03-01 09:14:32 +02:00
Valeriy Van
e59a74dd41 Get rid of helper function 2023-02-28 11:35:32 +02:00
Valeriy Van
da5be81857 Get rid of function used only once 2023-02-28 11:35:32 +02:00
Valeriy Van
eaecec1d2d Fix indentation 2023-02-28 11:35:32 +02:00
Valeriy Van
a1488d661a Fix header comment 2023-02-28 11:35:32 +02:00
Valeriy Van
2573eb37b7 Reduce count of benchmarks to 4 2023-02-28 11:35:32 +02:00
Valeriy Van
157397aa19 Fix misspelled Cyrillic 2023-02-28 11:35:32 +02:00
Valeriy Van
f18d76f98a Fix compile error in StringRepeating benchmark 2023-02-28 11:35:32 +02:00
Valeriy Van
542c88d964 Update copyright to year 2023
Co-authored-by: Xiaodi Wu <13952+xwu@users.noreply.github.com>
2023-02-28 11:35:31 +02:00
Valeriy Van
dd22e6a43c Removes slash from benchmrk name.
Slash in benchmark name makes benchmarks break.
2023-02-28 11:35:31 +02:00
Valeriy Van
bfb1e875af Adds benchmark for String(repeating:count:) 2023-02-28 11:35:31 +02:00