Home / Function/ test_extract_performance() — tailwindcss Function Reference

test_extract_performance() — tailwindcss Function Reference

Architecture documentation for the test_extract_performance() function in mod.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  98826bc7_7038_2e4e_1e77_9af53a024299["test_extract_performance()"]
  2a34bbb8_098e_f736_c9a4_821aa310393f["extract()"]
  98826bc7_7038_2e4e_1e77_9af53a024299 -->|calls| 2a34bbb8_098e_f736_c9a4_821aa310393f
  style 98826bc7_7038_2e4e_1e77_9af53a024299 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/oxide/src/extractor/mod.rs lines 318–338

    fn test_extract_performance() {
        if true {
            let iterations = 50_000;

            let input = include_bytes!("../fixtures/example.html");

            let throughput = Throughput::compute(iterations, input.len(), || {
                let mut extractor = Extractor::new(input);
                _ = black_box(extractor.extract());
            });
            eprintln!("Extractor throughput: {:}", throughput);

            let mut extractor = Extractor::new(input);
            let start = std::time::Instant::now();
            _ = black_box(extractor.extract().len());
            let end = start.elapsed();
            eprintln!("Extractor took: {:?}", end);

            todo!();
        }
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does test_extract_performance() do?
test_extract_performance() is a function in the tailwindcss codebase.
What does test_extract_performance() call?
test_extract_performance() calls 1 function(s): extract.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free