This is an archive of the discontinued LLVM Phabricator instance.

[libc++][ranges] Add benchmarks for the `from_range` constructors of `vector` and `deque`.
ClosedPublic

Authored by var-const on May 16 2023, 7:06 PM.

Diff Detail

Event Timeline

var-const created this revision.May 16 2023, 7:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 16 2023, 7:06 PM
var-const requested review of this revision.May 16 2023, 7:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 16 2023, 7:06 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
var-const updated this revision to Diff 522883.May 16 2023, 7:19 PM

Try to set the language version via set_target_properties instead of target_compile_options in case it works around the CMake issue on Windows.

I would prefer to have the CMake changes in a separate patch. I'm happy with these changes after applying my suggestion.

libcxx/benchmarks/CMakeLists.txt
1–5

It seems I missed this hunk when I updated the CMake requirements. This version is now validated by the top-level script.

var-const updated this revision to Diff 555507.Sep 1 2023, 2:12 PM

Rerun the Windows CI

var-const updated this revision to Diff 555531.Sep 1 2023, 4:12 PM

Experiment to fix the CI

Mordante accepted this revision.Sep 4 2023, 8:52 AM

LGTM after adding a comment.

libcxx/benchmarks/CMakeLists.txt
85

Please add a bit of comment here, once MSVC has cxx_std_23 support we should use that instead.

This revision is now accepted and ready to land.Sep 4 2023, 8:52 AM
var-const updated this revision to Diff 555948.Sep 5 2023, 3:55 PM

Address feedback

var-const updated this revision to Diff 555949.Sep 5 2023, 3:56 PM

Address feedback

var-const marked an inline comment as done.Sep 5 2023, 3:56 PM
This revision was landed with ongoing or failed builds.Sep 5 2023, 3:58 PM
This revision was automatically updated to reflect the committed changes.
sivachandra added inline comments.
libcxx/benchmarks/CMakeLists.txt
92

This line seems to have taken down the runtimes sphinx docs builder: https://lab.llvm.org/buildbot/#/builders/242/builds/950

The builder seems to be using an old version of gcc which doesn't know about cxx_std_23. Could we perhaps skip benchmarks if we are using an old compiler?

var-const marked an inline comment as done.Sep 19 2023, 12:07 PM
var-const added inline comments.
libcxx/benchmarks/CMakeLists.txt
92
sivachandra added inline comments.Sep 19 2023, 12:13 PM
libcxx/benchmarks/CMakeLists.txt
92

Thanks. It needs a buildbot restart to take effect, which hopefully will happen soon enough.