commit | 08b96edbff206a3ce478e63510dc6b903210e2f3 | [log] [tgz] |
---|---|---|
author | Peng Liu <winner245@hotmail.com> | Mon Nov 18 10:32:54 2024 -0500 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Nov 18 07:36:11 2024 -0800 |
tree | 4b16a72af5a4a3241af262d24732fd415637e590 | |
parent | 8ba165fcc69b2902c043ee8346be7f03ed61a439 [diff] |
[libc++][test] Speed up input generating functions for benchmark tests (#115544) The input generating functions for benchmark tests in the GenerateInput.h file can be slightly improved by invoking vector::reserve before calling vector::push_back. This slight performance improvement could potentially speed-up all benchmark tests for containers and algorithms that use these functions as inputs. GitOrigin-RevId: c25e09e238c6f872a116d10bbefba0beff145a57