homehome Home chatchat Notifications


How big is Google's code? It's huge that's for sure

Google’s Rachel Potvin took the stage @scale and hinted on just how many lines of code Google uses: a staggering 2 billion.

Tibi Puiu
November 25, 2015 @ 5:26 pm

share Share

lines-of-code

It’s already many years since Google stopped being just an internet company. It’s ambitious projects include Android, self-driving cars, space ventures, advanced biology research, cloud storage, quantum computing and many more. All of these operations, including Google, are now handled by a new parent company: Alphabet, since it’s clear a reorganization was in order to manage so many behemoths. At its core, however, Google (or Alphabet) is still a tech company. This involves a lot of software – the biggest in the world if we’re to judge by one common metric: lines of code.

When Google’s Rachel Potvin took the stage @scale, a tech conference in Silicon Valley, she hinted just how many lines of code Google uses: a staggering 2 billion. To compare, Windows XP – one of the most successful operating systems ever – was compiled using just 45 million lines of code. The comparison is apt since the code in Windows compiles search, system folders and files, media, everything that makes Windows tick. Likewise, Google’s code operates search, YouTube, Android, Maps, Gmail, every Google internet service for that matter. “Though I can’t prove it,” Potvin told the crowd, “I would guess this is the largest single repository in use anywhere in the world.”

Well, that’s huge. To juggle all of this complexity, Google developed its own code repository akin to the popular Github developers regularly use to collaborate and share their apps. It’s version control system is called Piper, and helps Google’s 25,000 developers safely and efficiently edit and share code. Most of the code, besides search algorithms (pagerank) and Android, is openly accessible by any Google developer. This makes it very easy to start new apps or update when you have such a huge library at your fingertips.

More stats

  • 2 billion lines of code accessible from Piper which spans over 10 data centers. The main Facebook app spans upwards of 20 million lines, while the Linux open source operating spans 15 million lines of code across 40,000 software files.
  • Google stores code for its two device operating systems—Android and Chrome—on separate version control systems.
  • Piper spans about 85 terabytes of data
  • Google’s 25,000 engineers make about 45,000 commits to the repository each day.

share Share

This Rare Viking Burial of a Woman and Her Dog Shows That Grief and Love Haven’t Changed in a Thousand Years

The power of loyalty, in this life and the next.

This EV Battery Charges in 18 Seconds and It’s Already Street Legal

RML’s VarEVolt battery is blazing a trail for ultra-fast EV charging and hypercar performance.

DARPA Just Beamed Power Over 5 Miles Using Lasers and Used It To Make Popcorn

A record-breaking laser beam could redefine how we send power to the world's hardest places.

Why Do Some Birds Sing More at Dawn? It's More About Social Behavior Than The Environment

Study suggests birdsong patterns are driven more by social needs than acoustics.

Nonproducing Oil Wells May Be Emitting 7 Times More Methane Than We Thought

A study measured methane flow from more than 450 nonproducing wells across Canada, but thousands more remain unevaluated.

CAR T Breakthrough Therapy Doubles Survival Time for Deadly Stomach Cancer

Scientists finally figured out a way to take CAR-T cell therapy beyond blood.

The Sun Will Annihilate Earth in 5 Billion Years But Life Could Move to Jupiter's Icy Moon Europa

When the Sun turns into a Red Giant, Europa could be life's final hope in the solar system.

Ancient Roman ‘Fast Food’ Joint Served Fried Wild Songbirds to the Masses

Archaeologists uncover thrush bones in a Roman taberna, challenging elite-only food myths

A Man Lost His Voice to ALS. A Brain Implant Helped Him Sing Again

It's a stunning breakthrough for neuroprosthetics

This Plastic Dissolves in Seawater and Leaves Behind Zero Microplastics

Japanese scientists unveil a material that dissolves in hours in contact with salt, leaving no trace behind.