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.

File typescript Oxide 5 imports

Entity Profile

Dependency Diagram

graph LR
  ceff594b_f13e_c59e_3d35_89cdfa84dbea["line-table.bench.ts"]
  c078df4e_9ae3_a02e_4feb_6380507fddd9["line-table.ts"]
  ceff594b_f13e_c59e_3d35_89cdfa84dbea --> c078df4e_9ae3_a02e_4feb_6380507fddd9
  1c8e1044_08e4_f6ad_7550_c4fa3667fbf3["createLineTable"]
  ceff594b_f13e_c59e_3d35_89cdfa84dbea --> 1c8e1044_08e4_f6ad_7550_c4fa3667fbf3
  9c72d32d_a535_69d4_565b_b620ce2eaae1["node:fs"]
  ceff594b_f13e_c59e_3d35_89cdfa84dbea --> 9c72d32d_a535_69d4_565b_b620ce2eaae1
  8454872a_1bfa_3cb3_db8f_6d2e7e422a55["node:url"]
  ceff594b_f13e_c59e_3d35_89cdfa84dbea --> 8454872a_1bfa_3cb3_db8f_6d2e7e422a55
  f1e05e5f_c1b2_a3f5_b2e8_3317b9243ac3["vitest"]
  ceff594b_f13e_c59e_3d35_89cdfa84dbea --> f1e05e5f_c1b2_a3f5_b2e8_3317b9243ac3
  style ceff594b_f13e_c59e_3d35_89cdfa84dbea 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 Oxide 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: Oxide, 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