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
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsReferences
Stroustrup. B.: The C++ Programming Language, 4th edn. Addison Wesley, Reading (2013). ISBN 0-321-56384-0
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
http://stackoverflow.com/questions/138361/how-much-faster-is-c-than-c (Accessed Jan 2017)
http://stackoverflow.com/questions/145110/c-performance-vs-java-c (Accessed Jan 2017)
http://www.cplusplus.com/forum/general/75347/ (Accessed Jan 2017)
http://www.codeproject.com/Articles/212856/Head-to-head-benchmark-Csharp-vs-NET (Accessed Jan 2017)
https://social.msdn.microsoft.com/Forums/en-US/37db0dc6-aee5-4947-ba02-7dc63a87e09d/c-vs-c-performance-test?forum=csharplanguage (Accessed Jan 2017)
http://florent.clairambault.fr/stupid-cpp-vs-charp-performance-comparison (Accessed Jan 2017)
http://josiahmanson.com/prose/speed_cpp_csharp/ (Accessed Jan 2017)
Kamika.pl/en (Accessed Jan 2017)
https://msdn.microsoft.com/en-us/library/bb397933.aspx (Accessed Jan 2017)
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)
Cormen, T.H., Leiserson, C.E., Rivest, R.L.: Introduction to Algorithms. MIT Press (1998)
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)
Open Scene Graph. http://www.openscenegraph.org (Accessed 2012)
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)
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
Corresponding author
Editor information
Editors and Affiliations
Rights 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)