> ## Documentation Index
> Fetch the complete documentation index at: https://site.aspect.build/llms.txt
> Use this file to discover all available pages before exploring further.

# Performance — Aspect Build Blog

> 9 Performance posts from the Aspect Build engineering blog on Bazel and developer productivity.

export const BlogCard = ({title, description, date, authors, tags, image, href, children}) => {
  const tagList = tags ? tags.split(", ").filter(Boolean) : [];
  const tagSlug = t => t.toLowerCase().replace(/&/g, "").replace(/\+/g, "").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
  const formattedDate = date ? new Date(date + "T00:00:00").toLocaleDateString("en-US", {
    year: "numeric",
    month: "short",
    day: "numeric"
  }) : "";
  const resolvedImage = typeof image === "string" && image.trim() === "" ? null : image;
  return <div data-tags={tagList.join(",")} className="blog-card flex flex-col rounded-xl border border-zinc-200 dark:border-zinc-700 bg-white dark:bg-zinc-800 overflow-hidden hover:shadow-lg transition group">
      <a href={href} className="block">
        {resolvedImage ? typeof resolvedImage === "string" ? <img noZoom src={resolvedImage} alt={title} className="w-full" style={{
    height: "180px",
    objectFit: "cover"
  }} /> : <div className="blog-card-image">{resolvedImage}</div> : children ? <div className="blog-card-image">{children}</div> : null}
        <div className="px-5 pt-5">
          <h3 className="text-lg font-semibold text-zinc-900 dark:text-white group-hover:text-blue-600 dark:group-hover:text-blue-400 transition">
            {title}
          </h3>
          {description && <p className="mt-2 text-sm text-zinc-600 dark:text-zinc-400 line-clamp-2">
              {description}
            </p>}
          <div className="flex items-center gap-2 mt-3 text-xs text-zinc-500 dark:text-zinc-400">
            {authors && <span>{authors}</span>}
            {authors && formattedDate && <span>·</span>}
            {formattedDate && <span>{formattedDate}</span>}
          </div>
        </div>
      </a>
      {tagList.length > 0 && <div className="flex flex-wrap gap-1.5 px-5 pb-4 pt-3 mt-auto">
          {tagList.map(tag => <a key={tag} href={"/blog/tags/" + tagSlug(tag)} className="px-2 py-0.5 rounded-full text-xs bg-zinc-100 dark:bg-zinc-800 text-zinc-600 dark:text-zinc-400 hover:bg-blue-100 dark:hover:bg-blue-900/40 hover:text-blue-700 dark:hover:text-blue-300 transition">
              {tag}
            </a>)}
        </div>}
    </div>;
};

export const MarketingPage = () => <div className="marketing-page-marker" style={{
  display: "none"
}} />;

export const Section = ({children, className = "", gray = false, dark = false, id}) => <section id={id} className={`w-full flex justify-center px-4 py-16 md:py-24 ${gray ? "bg-gray-50 dark:bg-zinc-900" : dark ? "bg-zinc-900 dark:bg-zinc-950" : ""} ${className}`}>
    <div className="w-full" style={{
  maxWidth: "1140px"
}}>
      {children}
    </div>
  </section>;

export const Hero = ({title, subtitle, badge, eyebrow, heroImageClassName = "", primaryCta, primaryHref = "#", secondaryCta, secondaryHref = "#", centered = true, children}) => <section className="w-full flex justify-center px-4 pt-16 pb-16 md:pt-24 md:pb-24" style={{
  background: "linear-gradient(180deg, var(--hero-gradient-start, #f8fafc) 0%, var(--hero-gradient-end, #ffffff) 100%)"
}}>
    <div className="w-full" style={{
  maxWidth: "1140px"
}}>
      {centered && !children ? <div className="flex flex-col items-center text-center">
          {badge && <div className="inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-blue-50 dark:bg-blue-900/30 border border-blue-200 dark:border-blue-700 text-blue-700 dark:text-blue-300 text-sm font-medium mb-6">
              {badge}
            </div>}
          {eyebrow && <div className="text-xs font-semibold tracking-widest uppercase text-blue-600 dark:text-blue-400 mb-4">
              {eyebrow}
            </div>}
          <h1 className="text-4xl md:text-5xl font-semibold text-zinc-900 dark:text-white leading-tight tracking-tight" style={{
  maxWidth: "820px"
}}>
            {String(title).split(/\\n|\n/).map((line, i) => i ? [<br key={i} />, line] : line)}
          </h1>
          {subtitle && <div className="subtitle-gap text-lg md:text-xl text-zinc-500 dark:text-zinc-300 leading-relaxed" style={{
  marginTop: "1rem",
  maxWidth: "600px"
}}>
              {subtitle}
            </div>}
          <div className="flex flex-wrap gap-3 mt-10 justify-center">
            {primaryCta && <a href={primaryHref} className="inline-flex items-center px-6 py-3 rounded-lg bg-blue-600 text-white font-semibold hover:bg-blue-700 transition shadow-sm">
                {primaryCta}
              </a>}
            {secondaryCta && <a href={secondaryHref} className={`inline-flex items-center px-6 py-3 rounded-lg border border-zinc-300 dark:border-zinc-600 text-zinc-700 dark:text-zinc-200 font-semibold hover:bg-zinc-50 dark:hover:bg-zinc-800 transition ${secondaryHref === "/request-demo" ? "demo-gradient-btn" : ""}`}>
                {secondaryCta}
              </a>}
          </div>
        </div> : <div className="flex flex-col md:flex-row items-center gap-10 md:gap-16">
          <div className="flex-1 min-w-0">
            {badge && <div className="inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-blue-50 dark:bg-blue-900/30 border border-blue-200 dark:border-blue-700 text-blue-700 dark:text-blue-300 text-sm font-medium mb-6">
                {badge}
              </div>}
            {eyebrow && <div className="text-xs font-semibold tracking-widest uppercase text-blue-600 dark:text-blue-400 mb-4">
                {eyebrow}
              </div>}
            <h1 className="text-4xl md:text-5xl font-semibold text-zinc-900 dark:text-white leading-tight tracking-tight">
            {String(title).split(/\\n|\n/).map((line, i) => i ? [<br key={i} />, line] : line)}
          </h1>
            {subtitle && <div className="subtitle-gap text-lg md:text-xl text-zinc-500 dark:text-zinc-300 leading-relaxed" style={{
  marginTop: "1rem"
}}>
                {subtitle}
              </div>}
            <div className="flex flex-wrap gap-3 mt-8">
              {primaryCta && <a href={primaryHref} className="inline-flex items-center px-6 py-3 rounded-lg bg-blue-600 text-white font-semibold hover:bg-blue-700 transition shadow-sm">
                  {primaryCta}
                </a>}
              {secondaryCta && <a href={secondaryHref} className={`inline-flex items-center px-6 py-3 rounded-lg border border-zinc-300 dark:border-zinc-600 text-zinc-700 dark:text-zinc-200 font-semibold hover:bg-zinc-50 dark:hover:bg-zinc-800 transition ${secondaryHref === "/request-demo" ? "demo-gradient-btn" : ""}`}>
                  {secondaryCta}
                </a>}
            </div>
          </div>
          {children && <div className={`flex-1 min-w-0 hero-image ${heroImageClassName}`}>
              {children}
            </div>}
        </div>}
    </div>
  </section>;

<MarketingPage />

<Hero title="Posts tagged Performance" subtitle="Engineering writing from the Aspect team on Performance." centered={true} />

<Section>
  <div className="mb-8">
    <a href="/blog" className="text-blue-600 dark:text-blue-400 font-semibold hover:underline">← All posts</a>
    <span className="mx-2 text-zinc-400">·</span>
    <a href="/blog/tags" className="text-blue-600 dark:text-blue-400 font-semibold hover:underline">Browse all tags</a>
  </div>

  <div className="marketing-grid-3">
    <BlogCard title="Bazel + TypeScript: faster with Remote Execution" description="See how Bazel's remote execution speeds up TypeScript builds by 8.4x on a 10M LOC project. Explore benchmarks and benefits." date="2022-09-06" authors="Greg Magolan" href="/blog/typescript-with-rbe" tags="TypeScript, Remote Execution, Performance, Bazel">
      <img noZoom src="https://mintcdn.com/aspectbuild/x1L7Iep716jCyJVo/images/blog/hashnode/hn-ef46707917.jpeg?fit=max&auto=format&n=x1L7Iep716jCyJVo&q=85&s=7c12a148ce4f2dbcaed4fb4a9e323b12" alt="" width="1600" height="1067" data-path="images/blog/hashnode/hn-ef46707917.jpeg" />
    </BlogCard>

    <BlogCard title="Fixing Bazel out-of-memory problems" description="Troubleshoot and fix Bazel's out-of-memory issues in both JVM and system contexts with practical solutions and tips." date="2022-08-20" authors="Alex Eagle" href="/blog/bazel-oom" tags="Bazel, Performance">
      <img noZoom src="https://mintcdn.com/aspectbuild/x1L7Iep716jCyJVo/images/blog/hashnode/hn-9dab9f15b9.jpeg?fit=max&auto=format&n=x1L7Iep716jCyJVo&q=85&s=7c58a1e73d917e5d2c6397d181218beb" alt="" width="1600" height="1068" data-path="images/blog/hashnode/hn-9dab9f15b9.jpeg" />
    </BlogCard>

    <BlogCard title="Why would you want a hermetic C++ toolchain?" description="Bazel is usually thought of as a hermetic build system. But the default behaviour you get with Bazel's C/C++ built-in rules is not hermetic! Why does this matte" date="2022-08-19" authors="Thulio Ferraz Assis" href="/blog/hermetic-c-toolchain" tags="Bazel, Performance">
      <img noZoom src="https://mintcdn.com/aspectbuild/x1L7Iep716jCyJVo/images/blog/hashnode/hn-e1e90ab1f0.jpeg?fit=max&auto=format&n=x1L7Iep716jCyJVo&q=85&s=63d7d0e919456e90b2ae505ef4c8a1f3" alt="" width="1600" height="1200" data-path="images/blog/hashnode/hn-e1e90ab1f0.jpeg" />
    </BlogCard>

    <BlogCard title="Diagnosing Bazel Cache Misses" description="Learn how to diagnose and fix Bazel cache misses by investigating repository rule determinism and file differences between executions" date="2022-06-24" authors="Matt Mackay" href="/blog/diagnose-cache-misses-1" tags="Remote Cache, Performance, Bazel">
      <img noZoom src="https://mintcdn.com/aspectbuild/x1L7Iep716jCyJVo/images/blog/hashnode/hn-3ca9b525b0.jpeg?fit=max&auto=format&n=x1L7Iep716jCyJVo&q=85&s=d07413b2b703370c58070eb0b8edf043" alt="" width="1600" height="1067" data-path="images/blog/hashnode/hn-3ca9b525b0.jpeg" />
    </BlogCard>

    <BlogCard title="rules_ts benchmarks" description="Discover the performance benchmarks of rules_ts, comparing ts_project with older rules and vanilla TypeScript compiler for faster builds" date="2022-06-21" authors="Greg Magolan" href="/blog/rules-ts-benchmarks" tags="TypeScript, Performance, JavaScript, Bazel">
      <img noZoom src="https://mintcdn.com/aspectbuild/x1L7Iep716jCyJVo/images/blog/hashnode/hn-d5dfbeef88.jpeg?fit=max&auto=format&n=x1L7Iep716jCyJVo&q=85&s=c8f14da503810036fdf014af6659a0d6" alt="" width="1600" height="1067" data-path="images/blog/hashnode/hn-d5dfbeef88.jpeg" />
    </BlogCard>

    <BlogCard title="rules_js npm benchmarks" description="Discover the performance benchmarks of rules_js npm tool compared to rules_nodejs and non-Bazel npm tools" date="2022-06-15" authors="Greg Magolan" href="/blog/rulesjs-npm-benchmarks" tags="JavaScript, Performance, Bazel">
      <img noZoom src="https://mintcdn.com/aspectbuild/x1L7Iep716jCyJVo/images/blog/hashnode/hn-7588bcce70.jpeg?fit=max&auto=format&n=x1L7Iep716jCyJVo&q=85&s=3a5d87eb7aee9dac1e9ced6769bf6a3e" alt="" width="1600" height="1067" data-path="images/blog/hashnode/hn-7588bcce70.jpeg" />
    </BlogCard>

    <BlogCard title=".bazelrc flags you should enable" description="Discover essential .bazelrc flags for optimal project setup, performance, and debugging." date="2022-04-28" authors="Alex Eagle" href="/blog/bazelrc-flags" tags="Bazel, Performance">
      <img noZoom src="https://mintcdn.com/aspectbuild/x1L7Iep716jCyJVo/images/blog/stock/control-faders.jpg?fit=max&auto=format&n=x1L7Iep716jCyJVo&q=85&s=2e84fcffa099758a02a3fb61f58e6e71" alt="" width="800" height="533" data-path="images/blog/stock/control-faders.jpg" />
    </BlogCard>

    <BlogCard title="Bazel: Avoiding eager fetches" description="Learn how to identify and prevent eager fetches in Bazel builds, optimizing dependency management for efficient development workflows" date="2022-03-30" authors="Alex Eagle" href="/blog/avoid-eager-fetches" tags="Bazel, Performance">
      <img noZoom src="https://mintcdn.com/aspectbuild/x1L7Iep716jCyJVo/images/blog/hashnode/hn-ba2d1c6e40.jpeg?fit=max&auto=format&n=x1L7Iep716jCyJVo&q=85&s=3c44ad139b20e6f98f33d33ba3911cd8" alt="" width="1600" height="1068" data-path="images/blog/hashnode/hn-ba2d1c6e40.jpeg" />
    </BlogCard>

    <BlogCard title="10-20x speedup for TypeScript transpilation in Bazel" description="Achieve 10-20x faster TypeScript transpilation in Bazel using the new `ts_project` with a customizable transpiler like SWC" date="2022-01-06" authors="Alex Eagle" href="/blog/typescript-speedup" tags="TypeScript, Performance, Bazel">
      <img noZoom src="https://mintcdn.com/aspectbuild/x1L7Iep716jCyJVo/images/blog/hashnode/hn-102bda9ac3.jpeg?fit=max&auto=format&n=x1L7Iep716jCyJVo&q=85&s=7e3bdafb701907d085bbd7e5479c1929" alt="" width="1600" height="1067" data-path="images/blog/hashnode/hn-102bda9ac3.jpeg" />
    </BlogCard>
  </div>
</Section>
