test(icons): run the themed-handle timing benchmark only on request

It asserted a wall-clock race between two loops, which the parallel
suite's load lost now and then. The cache's behaviour stays pinned by
the entry-count tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Hakan SevenandClaude Opus 5.5 committed 2026-10-01 00:27:42 +03:00
1 parent 95a4419d0d
commit 9dd9b3eb8d
1 file changed
+6 -1
+6 -1
View File
@@ -1030,8 +1030,13 @@ mod themed_cache_tests {
/// on a different static.
///
/// Run with `--nocapture` to see the numbers:
/// `cargo test --lib themed_cache_speedup_over_uncached_handle_creation -- --nocapture`.
/// `cargo test --lib themed_cache_speedup_over_uncached_handle_creation -- --ignored --nocapture`.
///
/// Ignored by default: it compares wall-clock times, and under the
/// parallel suite's load the uncached loop can finish first. The cache's
/// behaviour is pinned by the entry-count tests above.
#[test]
#[ignore = "wall-clock benchmark; run with --ignored"]
fn themed_cache_speedup_over_uncached_handle_creation() {
use std::time::Instant;