llvm-capstone/libcxx/benchmarks
ZijunZhaoCCK fdd089b500
[libc++] Implement ranges::contains (#65148)
Differential Revision: https://reviews.llvm.org/D159232
```
Running ./ranges_contains.libcxx.out
Run on (10 X 24.121 MHz CPU s)
CPU Caches:
  L1 Data 64 KiB (x10)
  L1 Instruction 128 KiB (x10)
  L2 Unified 4096 KiB (x5)
Load Average: 3.37, 6.77, 5.27
--------------------------------------------------------------------
Benchmark                          Time             CPU   Iterations
--------------------------------------------------------------------
bm_contains_char/16             1.88 ns         1.87 ns    371607095
bm_contains_char/256            7.48 ns         7.47 ns     93292285
bm_contains_char/4096           99.7 ns         99.6 ns      7013185
bm_contains_char/65536          1296 ns         1294 ns       540436
bm_contains_char/1048576       23887 ns        23860 ns        29302
bm_contains_char/16777216     389420 ns       389095 ns         1796
bm_contains_int/16              7.14 ns         7.14 ns     97776288
bm_contains_int/256             90.4 ns         90.3 ns      7558089
bm_contains_int/4096            1294 ns         1290 ns       543052
bm_contains_int/65536          20482 ns        20443 ns        34334
bm_contains_int/1048576       328817 ns       327965 ns         2147
bm_contains_int/16777216     5246279 ns      5239361 ns          133
bm_contains_bool/16             2.19 ns         2.19 ns    322565780
bm_contains_bool/256            3.42 ns         3.41 ns    205025467
bm_contains_bool/4096           22.1 ns         22.1 ns     31780479
bm_contains_bool/65536           333 ns          332 ns      2106606
bm_contains_bool/1048576        5126 ns         5119 ns       135901
bm_contains_bool/16777216      81656 ns        81574 ns         8569
```

---------

Co-authored-by: Nathan Gauër <brioche@google.com>
2023-12-19 16:34:19 -08:00
..
algorithms [libc++] Implement ranges::contains (#65148) 2023-12-19 16:34:19 -08:00
libcxxabi [libc++abi] Refactor around __dynamic_cast 2023-09-08 11:47:24 -04:00
algorithms.partition_point.bench.cpp [libc++][NFC] Apply clang-format on large parts of the code base 2023-06-19 11:19:51 -04:00
allocation.bench.cpp [libc++] Fix minor warnings in libcxx benchmarks 2023-09-13 17:05:56 -04:00
CartesianBenchmarks.h [libc++][NFC] Apply clang-format on large parts of the code base 2023-06-19 11:19:51 -04:00
CMakeLists.txt [libc++] Implement ranges::contains (#65148) 2023-12-19 16:34:19 -08:00
ContainerBenchmarks.h [libc++] Optimize vector push_back to avoid continuous load and store of end pointer 2023-10-02 09:12:37 -04:00
deque_iterator.bench.cpp
deque.bench.cpp Reapply "[libc++][ranges] Add benchmarks for the from_range constructors of vector and deque." (#67753) 2023-09-29 10:27:20 -04:00
filesystem.bench.cpp [libc++] Properly guard std::filesystem with >= C++17 (#72701) 2023-11-28 18:41:59 -05:00
format_to_n.bench.cpp [libc++][NFC] Apply clang-format on large parts of the code base 2023-06-19 11:19:51 -04:00
format_to.bench.cpp [libc++][NFC] Apply clang-format on large parts of the code base 2023-06-19 11:19:51 -04:00
format.bench.cpp
formatted_size.bench.cpp
formatter_float.bench.cpp [libc++][NFC] Apply clang-format on large parts of the code base 2023-06-19 11:19:51 -04:00
formatter_int.bench.cpp [libc++][NFC] Apply clang-format on large parts of the code base 2023-06-19 11:19:51 -04:00
function.bench.cpp [libc++][NFC] Apply clang-format on large parts of the code base 2023-06-19 11:19:51 -04:00
GenerateInput.h Use hash value checks optimizations consistently 2023-07-04 21:01:08 +02:00
join_view.bench.cpp
lexicographical_compare_three_way.bench.cpp
lit.cfg.py [NFC][Py Reformat] Reformat python files in libcxx/libcxxabi 2023-05-25 11:15:34 +02:00
lit.site.cfg.py.in
map.bench.cpp [libc++][NFC] Apply clang-format on large parts of the code base 2023-06-19 11:19:51 -04:00
monotonic_buffer.bench.cpp [libc++] Fix minor warnings in libcxx benchmarks 2023-09-13 17:05:56 -04:00
ordered_set.bench.cpp [libc++][NFC] Apply clang-format on large parts of the code base 2023-06-19 11:19:51 -04:00
random.bench.cpp [libc++][NFC] Apply clang-format on large parts of the code base 2023-06-19 11:19:51 -04:00
std_format_spec_string_unicode.bench.cpp
stop_token.bench.cpp [libc++][test] add more benchmarks for stop_token (#69590) 2023-12-02 16:14:38 +00:00
string.bench.cpp [libc++][NFC] Apply clang-format on large parts of the code base 2023-06-19 11:19:51 -04:00
stringstream.bench.cpp [libc++] Speed up classic locale (take 2) (#73533) 2023-11-29 09:31:05 -05:00
system_error.bench.cpp [libc++] Optimize internal function in <system_error> 2023-08-11 13:08:45 -07:00
to_chars.bench.cpp
unordered_set_operations.bench.cpp [libc++] Add test coverage for unordered containers comparison (#66692) 2023-09-21 05:11:49 -04:00
util_smartptr.bench.cpp
Utilities.h [libc++][NFC] Apply clang-format on large parts of the code base 2023-06-19 11:19:51 -04:00
variant_visit_1.bench.cpp
variant_visit_2.bench.cpp
variant_visit_3.bench.cpp
VariantBenchmarks.h [libc++][NFC] Apply clang-format on large parts of the code base 2023-06-19 11:19:51 -04:00
vector_operations.bench.cpp [libc++] Optimize vector push_back to avoid continuous load and store of end pointer 2023-10-02 09:12:37 -04:00