Uppsats
Neural Network in Java using DeepLearning4J framework vs. Python using TensorFlow framework: Trade-offs Between Execution Speed, Resource Consumption, and Developer Efficiency : A Comparative Benchmark and User Evaluation Study
Kandidat-uppsats
KTH/Skolan för elektroteknik och datavetenskap (EECS)
Publicerad: 2025
Språk: Engelska
Nyckelord
klicka för att sökaSammanfattning
Programmers face challenges when choosing between Java (using DeepLearning4J) and Python (using TensorFlow) for neural network deployment, particularly when performance, resource utilization, and developer efficiency must be balanced. This study aims to provide data-driven guidance to support language selection for AI where performance, scalability, or system integration are critical. To investigate this, identical neural networks ranging from easy to hard complexity, including convolutional architectures were implemented in both languages using the MNIST dataset. Performance metrics such as training time, inference latency, and memory consumption were collected under controlled conditions. Developer-oriented metrics including code complexity and implementation effort were also measured. The results indicate that TensorFlow, leveraging GPU acceleration, offers significantly faster training speeds, particularly for more complex models. In contrast, DeepLearning4J on CPU achieved lower inference latency than TensorFlow for the dense models, whereas GPU-accelerated TensorFlow delivered sub-millisecond calls on the convolutional neural networks (CNN). While Python implementations required fewer lines of code and similar levels of cyclomatic complexity, both frameworks produced models with comparable accuracy, showing a variance of no more than 0.5 percent, but with differences in training time and memory usage. The training time showed that TensorFlow outperformed DeepLearning4J in most neural network complexities, and that DeepLearning4J outperformed TensorFlow by using less memory. These findings suggest that TensorFlow is well suited for rapid prototyping with GPU support, whereas DeepLearning4J may be more appropriate for resource efficient, CPU-based deployment in enterprise environments.
Information
- Författare
- Haidari, Marvin, Abdi Salah, Salahudin
- Lärosäte / institution
- KTH/Skolan för elektroteknik och datavetenskap (EECS)
- Publiceringsdatum
- 2025
- Uppsatstyp
- Kandidat-uppsats
- Språk
- Engelska
- Nyckelord
- ⌕Artificial Intelligence⌕Machine Learning⌕artificiell intelligens⌕Python⌕maskininlärning⌕Neural Network⌕Convolutional Neural Network⌕TensorFlow⌕Performance benchmarking⌕Execution speed⌕Model accuracy⌕Java⌕Deeplearning4j⌕Modified National Institute of Standards and Technology database (MNIST)⌕Image Recognition⌕Artificiellt neuronnät⌕Konvolutionellt neuralt nätverk⌕prestandamätning⌕Exekveringshastighet⌕Modellnoggrannhet⌕bildigenkänning
Utforska vidare
Liknande uppsatser
Uppsatser med liknande ämnen och nyckelord.
Kandidat-uppsats, Högskolan i Halmstad/Akademin för informationsteknologi
Fawal, Raghad
Publicerad: 2026
Kandidat-uppsats, Mälardalens universitet/Akademin för ekonomi, samhälle och teknik
Sauleskalne, Patricija, Tigerbacke, Fideli
Publicerad: 2026
Yrkesexamen på avancerad nivå, Uppsala universitet/Avdelningen för systemteknik
Vigholm, Albin
Publicerad: 2026
Yrkesexamen på avancerad nivå, Luleå tekniska universitet/Institutionen för ekonomi, teknik, konst och samhälle
Åström, Tuva, Nilsson, Matilda
Publicerad: 2026
Yrkesexamen på avancerad nivå, Luleå tekniska universitet/Institutionen för ekonomi, teknik, konst och samhälle
Nordlander, Jonas
Publicerad: 2026
M1-uppsats, Jönköping University/JTH, Avdelningen för datateknik och informatik
Seyhani Porshekoh, Artin
Publicerad: 2026