2023· International Journal of Applied Data Science & Modern Computing· 0 citations
TL;DR
The approach provided here unifies the profiling, benchmark based analysis, bottleneck detection, focused optimization, and quantitative validation into a single procedure and provides practical recommendations to improve computational performance, scalability, and resource consumption of data-intensive Python systems in production environments.
Abstract
Performance improvements in data-intensive Python applications have become more critical due to the increasing computational needs of modern analytics, machine learning, and large-scale data processing systems. Although the Python environment is enormous as well as flexible in development, frequent delay in execution, memory inefficiency and scalability problems are often encountered in many applications because of CPU demanding processes, over allocation of memory and I/O bottlenecks. In this research, we provide a systematic experimental technique to identify, classify, and resolve performance bottlenecks in large-scale Python applications. The approach we provide here unifies the profiling, benchmark based analysis, bottleneck detection, focused optimization, and quantitative validation into a single procedure. The proposed approach was tested on a transactional dataset of around 10 million records. We used performance profiling tools like cProfile, line_profiler and memory_profiler to identify computational bottlenecks, memory allocation inefficiencies and disk I/O latencies. Profiling findings were used to apply these optimization methods such as vectorization using NumPy and Pandas, multiprocessing, memory-efficient information management, and asynchronous I/O techniques. Experimental evaluation showed significant performance improvements, in particular decrease in execution time from 120 seconds to 50 seconds, reduction in peak memory use by roughly 38%, and significant gains in throughput and scalability under high workloads. The findings demonstrate that effective performance enhancement needs a systematic strategy that correlates bottleneck discovery, optimization selection along with validation rather than different tuning approaches. The proposed technique provides practical recommendations to improve computational performance, scalability, and resource consumption of data-intensive Python systems in production environments.
A benchmarking study of Python-Rust interoperability reveals that the Rust enhanced versions systematically execute faster than pure Pythoncode- up to three times faster in some cases.
S. Singh, R.pradeep Raj· International Journal For Mu...· 0 citations
LMTracer is presented, a fine-grained and real-time performance profiling framework for production LLM services that embed profiling logic into the execution through graph-embedded probing and streaming buffered profiling data to CPUs on demand to keep the execution of user kernels uninterrupted.
Wei Liu, Yong-Chao He, Bo-Han Zhao et al.· Proceedings of the ACM SIGOP...· 0 citations
StreamTrace is presented, a streaming trace analysis system that enables efficient analysis of massive traces on a single computing node with bounded memory consumption and introduces two key techniques: communication pattern-aware chunk partitioning that minimizes cross-chunk dependence and dynamic priority-based chun...
Yu-Yang Jin, Ji-Dong Zhai· Proceedings of the Internati...· 0 citations
Parallel performance depends not only on programming language and runtime design, but also on how the dominant execution bottleneck changes as parallelism increases. We present a controlled cross-language study of Rust, Julia, Haskell, and Python using Merge Sort, Closest Pair of Points, and Numerical Sum in a multicor...
Muhammad Hassam Aslam Khan, Daniel Stapleton, Medha Kulkarni et al.· Software· 0 citations
This paper systematically evaluates the performance across three different native vectorized execution engines, including C++ based Velox and ClickHouse, and Rust based DataFusion, for the widely used big data engine Apache Spark, and proposes a cost model driven operator placement strategy that adaptively schedules op...