Report: Open source code matches proprietary code in quality

Development testing programme is vital claims Coverity

By Sophie Curtis, Techworld |  Open Source

  Sign me up for ITworld's FREE daily newsletter!
Email: 
 

The quality of open source code is on a par with proprietary code, particularly in cases where codebases are of similar size.

This was one of the key findings of development testing company Coverity's annual Scan report. The company measured the quality of code by comparing defect density - the number of defects per 1,000 lines of code. The average defect density for the software industry is 1.0.

The report found that open source projects that had completed development testing using Coverity Scan had an average defect density of 0.45. This figure is based on analysis of 37 million lines of code from 45 of the most active open source projects in Scan.

In comparison, the average defect density for proprietary codebases was 0.64, based on analysis of 300 million lines of code from 41 proprietary codebases. The average proprietary codebase has 7.5 million lines of code, compared to 832,000 lines for open source projects.

"Really the results are pretty amazing," said Zack Samocha, director of the Coverity Scan Project. "Open source projects are acting like commercial products. If I am a commercial company and I want to adopt open source, there are definitely projects out there that are trustworthy."

Coverity's Scan report also looked in greater detail at Linux 2.6, PHP 5.3, and PostgreSQL 9.1 - three open source projects that are considered to have superior code quality and can be used as industry benchmarks. These projects achieved defect densities of .62, .20, and .21 respectively.


Originally published on Techworld |  Click here to read the original story.
Join us:
Facebook

Twitter

Pinterest

Tumblr

LinkedIn

Google+

Answers - Powered by ITworld

ITworld Answers helps you solve problems and share expertise. Ask a question or take a crack at answering the new questions below.

Join us:
Facebook

Twitter

Pinterest

Tumblr

LinkedIn

Google+

Ask a Question