Skip to Content
AI時代のWebパフォーマンス・エンジニアリング ―速度と品質の最適化
book

AI時代のWebパフォーマンス・エンジニアリング ―速度と品質の最適化

by Addy Osmani, 株式会社ツークンフト・ワークス
November 2026
252 pages
3h 38m
Japanese
O'Reilly Japan, Inc.
Content preview from AI時代のWebパフォーマンス・エンジニアリング ―速度と品質の最適化

3章AI生成のコードとパフォーマンスの逆説

AI支援によるコード生成は、現代の開発現場において、目新しさから日常的なツールへと急速に移行した。大規模言語モデル(LLM)やAIコーディングアシスタントは、Webアプリケーションのコードを数秒で生成し、ブラウザ上で動作する解決策を提供できる。しかし、この速度と利便性には逆説が伴う。これらのツールは現在、正確性(プロンプトの意図を満たすこと)やスタイルを最適化しているが、パフォーマンスは最適化していないのだ。AIが学習するトレーニングデータは、Web上のコードを混合したものであり、良い実践と悪い実践の両方を含む。そのためAIは、動作はするが最適でも効率的でもなく、アクセシビリティやユーザーフレンドリーさに欠ける解決策を生成する可能性がある。実際、多くの開発者はAI生成アプリが十分に機能するものの、実世界の基準で評価すると深刻なパフォーマンスや品質の問題を抱えていることに気づいている。

本章ではこの問題を俯瞰的に考察し、人間の開発者の役割がどう変化しているかを評価していく。続く章では、AI生成のコードを最適化するための具体的なテクニックを提示する。

3.1 AIの出力:正しいけれど最適化されていない

大規模言語モデル(LLM)は、世界中のオープンソースコードを吸収し、一般的なパターンを学習している。つまり、生成されるコードはオンラインで見られる平均的な手法に従う傾向があるのだ。残念ながら、Webコードの「平均」はパフォーマンス面で理想から程遠いことが多い。たとえば、多くのWebチュートリアルは明瞭さを優先して単純な手法を用いる(最適とは言えない方法でfor...inループを使用したり、文字列連結でDOMを構築したりする)。AIはそれらを「普通」と見なし、より優れたメソッドが存在する現代でもレプリケーションしてしまう可能性がある。 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

The Hidden Cost of AI-Assisted Creativity

The Hidden Cost of AI-Assisted Creativity

Léonard Boussioux, Anil Doshi, Oliver Hauser, Kartik Hosanagar
How to Develop a Great Digital Strategy

How to Develop a Great Digital Strategy

Jeanne W. Ross, Cynthia M. Beath, Ina M. Sebastian
Workforce Ecosystem Orchestration: A Strategic Framework

Workforce Ecosystem Orchestration: A Strategic Framework

Elizabeth J. Altman, David Kiron, Robin Jones, Susan Cantrell, Steven Hatfield
How to Overcome a Power Deficit

How to Overcome a Power Deficit

Cyril Bouquet, Jean-Louis Barsoux

Publisher Resources

ISBN: 9784814401888Publisher Website