Skip to main content

On the Performance of Some C# Constructions

  • Conference paper
  • First Online:

Part of the book series: Advances in Intelligent Systems and Computing ((AISC,volume 582))

Abstract

In some types of dependable applications (e.g. controlling some electronic devices) the execution time of a program has to be very short to enable the appropriate control of the device. Implementing code for Kamika’s device that measures small particles in the air or in the liquid we are using C# language. Some parts of the code were also transformed into C++ to find overheads. The main part of the paper are results of some comparative experiments measuring the performance of alternative C# constructions. We were especially interested in extension methods which enable to “add” methods to existing types without creating a new derived type, recompiling, or modifying the original type.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   129.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   169.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

References

  1. Stroustrup. B.: The C++ Programming Language, 4th edn. Addison Wesley, Reading (2013). ISBN 0-321-56384-0

    Google Scholar 

  2. Troelsen, A., Japikse, P.: C# 6.0 and the .NET 4.6 Framework, 7th edn. Apress (2015). ISBN: 978-1-4842-1333-9, doi:10.1007/978-1-4842-1332-2

  3. http://stackoverflow.com/questions/138361/how-much-faster-is-c-than-c (Accessed Jan 2017)

  4. http://stackoverflow.com/questions/145110/c-performance-vs-java-c (Accessed Jan 2017)

  5. http://www.cplusplus.com/forum/general/75347/ (Accessed Jan 2017)

  6. http://www.codeproject.com/Articles/212856/Head-to-head-benchmark-Csharp-vs-NET (Accessed Jan 2017)

  7. https://social.msdn.microsoft.com/Forums/en-US/37db0dc6-aee5-4947-ba02-7dc63a87e09d/c-vs-c-performance-test?forum=csharplanguage (Accessed Jan 2017)

  8. http://florent.clairambault.fr/stupid-cpp-vs-charp-performance-comparison (Accessed Jan 2017)

  9. http://josiahmanson.com/prose/speed_cpp_csharp/ (Accessed Jan 2017)

  10. Kamika.pl/en (Accessed Jan 2017)

  11. https://msdn.microsoft.com/en-us/library/bb397933.aspx (Accessed Jan 2017)

  12. Gerlach, J., Kneis, J.: Generic programming for scientific computing in C++, Java, and C#. In: Zhou, X., et al. (eds.) APPT 2003. LNCS, vol. 2834, pp. 301–310. Springer (2003)

    Google Scholar 

  13. Cormen, T.H., Leiserson, C.E., Rivest, R.L.: Introduction to Algorithms. MIT Press (1998)

    Google Scholar 

  14. Gherardi, L., et al..: A Java vs. C++ performance evaluation: a 3D modeling benchmark. In: Noda, I., et al. (eds.) SIMPAR 2012. LNAI, vol. 7628, pp. 161–172. Springer (2012)

    Google Scholar 

  15. Open Scene Graph. http://www.openscenegraph.org (Accessed 2012)

  16. Cortellessa, V., et al.: Software performance antipatterns: modeling and analysis. In: Bernardo, M., et al. (eds.) SFM 2012. LNCS, vol. 7320, pp. 290–335. Springer (2012)

    Google Scholar 

Download references

Acknowledgments

The research leading to the presented results has received funding from the National Centre for Research and Development grant number POIR.01.01.01-00-0459/15-00.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Ilona Bluemke .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer International Publishing AG

About this paper

Cite this paper

Bluemke, I., Gawkowski, P., Grabski, W., Grochowski, K. (2018). On the Performance of Some C# Constructions. In: Zamojski, W., Mazurkiewicz, J., Sugier, J., Walkowiak, T., Kacprzyk, J. (eds) Advances in Dependability Engineering of Complex Systems. DepCoS-RELCOMEX 2017. Advances in Intelligent Systems and Computing, vol 582. Springer, Cham. https://doi.org/10.1007/978-3-319-59415-6_4

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-59415-6_4

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-59414-9

  • Online ISBN: 978-3-319-59415-6

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics