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
  06a19569_af8d_6742_4209_b8f66ab97091["test_extract_performance()"]
  eb5f3ab1_80da_abe4_f35c_a91e8e409b69["mod.rs"]
  06a19569_af8d_6742_4209_b8f66ab97091 -->|defined in| eb5f3ab1_80da_abe4_f35c_a91e8e409b69
  16a2f09b_5333_b32e_a269_9de80b7dbf37["extract()"]
  06a19569_af8d_6742_4209_b8f66ab97091 -->|calls| 16a2f09b_5333_b32e_a269_9de80b7dbf37
  style 06a19569_af8d_6742_4209_b8f66ab97091 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, defined in crates/oxide/src/extractor/mod.rs.
Where is test_extract_performance() defined?
test_extract_performance() is defined in crates/oxide/src/extractor/mod.rs at line 318.
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