#763·llm_wiki

perf: 通过逐边扫描所有节点来检索图链接别名解析,导致同步耗时为 O(N×E)

作者: xinyuan0801创建于 2026年9月16日更新于 2026年9月16日

#!/usr/bin/env node /**

  • Baseline: e8082119649e6a8e1cf85eaf289adcabfdf39d4e
  • Source: src/lib/graph-relevance.ts:124-138
  • Runs only the original resolver, with generated alias and exact-ID inputs.
  • Synchronous CPU microbenchmark; excludes I/O, LLM calls, and UI rendering. */ import assert from 'node:assert/strict'; import fs from 'node:fs'; import os from 'node:os'; import path from 'node:path'; import { performance } from 'node:perf_hooks';

const COMMIT =

内容来源: nashsu/llm_wiki