Home / File/ line-table.bench.ts — tailwindcss Source File

line-table.bench.ts — tailwindcss Source File

Architecture documentation for line-table.bench.ts, a typescript file in the tailwindcss codebase. 5 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  c6e6fc66_f7c6_6475_0a59_270487b701d3["line-table.bench.ts"]
  ac7e86e1_459b_f374_4516_afecc84f2a17["line-table.ts"]
  c6e6fc66_f7c6_6475_0a59_270487b701d3 --> ac7e86e1_459b_f374_4516_afecc84f2a17
  0204f9b9_80aa_c3e8_eb61_22170d608d65["createLineTable"]
  c6e6fc66_f7c6_6475_0a59_270487b701d3 --> 0204f9b9_80aa_c3e8_eb61_22170d608d65
  6390fa3b_300d_6028_9e96_c869157db42d["node:fs"]
  c6e6fc66_f7c6_6475_0a59_270487b701d3 --> 6390fa3b_300d_6028_9e96_c869157db42d
  83f4eb5c_a623_9c4e_b3f7_d95e77d40d82["node:url"]
  c6e6fc66_f7c6_6475_0a59_270487b701d3 --> 83f4eb5c_a623_9c4e_b3f7_d95e77d40d82
  696bd648_5f24_1b59_8e8b_7a97a692869e["vitest"]
  c6e6fc66_f7c6_6475_0a59_270487b701d3 --> 696bd648_5f24_1b59_8e8b_7a97a692869e
  style c6e6fc66_f7c6_6475_0a59_270487b701d3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { readFileSync } from 'node:fs'
import { fileURLToPath } from 'node:url'

import { bench } from 'vitest'
import { createLineTable } from './line-table'

const currentFolder = fileURLToPath(new URL('..', import.meta.url))
const cssFile = readFileSync(currentFolder + '../preflight.css', 'utf-8')
const table = createLineTable(cssFile)

bench('line table lookups', () => {
  for (let i = 0; i < cssFile.length; ++i) table.find(i)
})

Domain

Dependencies

Frequently Asked Questions

What does line-table.bench.ts do?
line-table.bench.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the OxideEngine domain.
What does line-table.bench.ts depend on?
line-table.bench.ts imports 5 module(s): createLineTable, line-table.ts, node:fs, node:url, vitest.
Where is line-table.bench.ts in the architecture?
line-table.bench.ts is located at packages/tailwindcss/src/source-maps/line-table.bench.ts (domain: OxideEngine, directory: packages/tailwindcss/src/source-maps).

Analyze Your Own Codebase

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

Try Supermodel Free