Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
C, C++, Java och Python: En prestandajämförelse mellan fyra programmeringsspråk
Blekinge Institute of Technology, School of Computing.
Blekinge Institute of Technology, School of Computing.
2011 (Swedish)Independent thesis Basic level (degree of Bachelor)Student thesisAlternative title
C, C++, Java and Python : A performance comparison of four programming languages (English)
Abstract [sv]

In today’s society computers are getting a much more important role. To get a computer to work as intended it has to be programmed. A computer program is written with programming languages. There is an abundance of programming languages available today and there are many differences and similarities between them. The different languages have their advantages and their disadvantages where some of them are intended for fast performance, some to be cheap on memory usage, and some are developed to be easy to program on. In our thesis we have chosen to compare four of todays most common languages, C, C++, Java and Python. These languages were chosen because we have worked with three of them during our study period (C, C++ and Java). Python was chosen because it is an interpreted language and not a compiled one. It also have a very different syntax compared to the other languages which makes it interesting. Our comparison, which focuses on performance, has its foundation in the tests we have made, but also on results from a research survey that we also made. I this survey forty software developers, from Swedish companies, have participated. The tests we have made measure the languages performance, regarding time, by implementing and running two common algorithms. During these tests vi have also chosen to register the amount of memory these algorithms use during runtime. The results we have extracted from our tests and our survey are compiled, and these results are then analysed to be able to compare the four programming languages to each other. The tests that have been done show that Java is the language that performs best, with C and C ++ second best and then Python performing the worst. Our survey answers, on the other hand, indicates that C and C++ should have outperformed Java.

Place, publisher, year, edition, pages
2011. , p. 62
Keywords [sv]
Programming language, comparison, Java, C, C++, Python, performance
National Category
Computer Sciences Software Engineering
Identifiers
URN: urn:nbn:se:bth-2304Local ID: oai:bth.se:arkivex070E90E96E13E01FC12578C3006641A3OAI: oai:DiVA.org:bth-2304DiVA, id: diva2:829573
Uppsok
Technology
Supervisors
Available from: 2015-04-22 Created: 2011-07-04 Last updated: 2018-01-11Bibliographically approved

Open Access in DiVA

fulltext(975 kB)1029 downloads
File information
File name FULLTEXT01.pdfFile size 975 kBChecksum SHA-512
32d4f1e5189f97a11904c1f9e44bfa1a32a892a5bfe4694c3aaa2928b76a4ea6b9e2df827fb8bc72dcd73b3787d26b3b62f5847b6cde708011664c9bca63131e
Type fulltextMimetype application/pdf

By organisation
School of Computing
Computer SciencesSoftware Engineering

Search outside of DiVA

GoogleGoogle Scholar
Total: 1029 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 1011 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf