The paper presents research on the time performance of each language when performing operations on the CPU (central processing unit) and GPU (graphics processing unit). This article should be considered as a coherent continuation of the first part [18]. The paper has been divided due to existing editorial criteria. The work includes descriptions of the technologies used and the algorithms that served the research purposes. Algorithms prepared with care to maintain equal use of functions by both programming languages based on block diagrams and pseudocode are presented. The paper first presents the research carried out on the basis of sorting algorithms implemented by the Author and executed on the processor. The next part of the paper presents research verifying the performance of Julia and Python programming languages on graphics cards, with a special focus on the implementation of matrix operations. The article is concluded with a discussion of the time performance of each programming language.
PL
W pracy przedstawione zostały badania nad wydajnością czasową każdego z języków podczas wykonywania operacji na CPU (jednostce centralnej) i GPU (jednostce przetwarzania grafiki). Artykuł ten należy traktować jako spójną kontynuację części pierwszej [18]. Praca została podzielona ze względu na kryteria redakcyjne. Artykuł zawiera opisy wykorzystanych technologii oraz algorytmów, które posłużyły celom badawczym. Przedstawione zostały algorytmy przygotowane z dbałością o zachowanie jednakowego wykorzystania funkcji przez oba języki programowania na podstawie schematów blokowych oraz pseudokodów. W pracy najpierw wskazano badania przeprowadzone na podstawie algorytmów sortowania zaimplementowanych przez autora i wykonanych przez procesor. W kolejnej części artykułu znalazły się badania weryfikujące wydajność języków programowania Julia i Python na kartach graficznych, ze szczególnym uwzględnieniem implementacji operacji macierzowych. Artykuł został zakończony omówieniem wydajności czasowych każdego języka programowania.
W artykule przedstawiono podejście do oszacowania liczby pojazdów na linii komunikacji miejskiej, oparte o model symulacyjny procesu obsługi pasażerów na linii autobusowej. Zadanie ustalenia takiej liczby autobusów, która zapewnia minimalny koszt transportu przy maksymalnym poziomie obsługi pasażerów, jest zagadnieniem dość złożonym ze względu na stochastyczny charakter procesu transportowego oraz losowy charakter popytu mieszkańców miast na podróże. Autor przedstawia bibliotekę klas zrealizowanych za pomocą współczesnego języka programowania Python, na podstawie której opracowany został model symulacyjny procesu funkcjonowania linii komunikacji miejskiej. Wyniki eksperymentu symulacyjnego, zrealizowanego w oparciu na opracowane oprogramowanie, pozwoliły na ustalenie zależności funkcyjnej pomiędzy łącznym czasem oczekiwania przez pasażerów autobusów na przystankach a charakterystykami linii komunikacji miejskiej. Wykorzystując uzyskaną zależność, ustalono formułę dla oszacowania optymalnej liczby autobusów na linii jako argument, w którym funkcja łącznych kosztów podsystemu transportowego osiąga ekstremum minimalne.
EN
The article presents an approach to estimate the number of vehicles on public transport line; this approach is based on a simulation model of the process of servicing the bus line passengers. The problem of determining such a number of buses, that provides the minimum cost of transport at the maximum level of passenger service, is quite a complex issue due to the stochastic nature of the transport process and the random nature of the demand for urban residents traveling. The author presents a class library implemented using modern programming language Python; on the basis of that library the simulation model the process of the public transport line functioning was developed. The results of the simulation experiment, based on the developed software, allowed to determine the functional dependence between the total waiting time for bus passengers at bus stops and the characteristics of the public transport line. Using the obtained dependence, a formula for estimating the optimal number of buses on the line was established as an argument, in which the function of the transport subsystem total cost reaches its extreme minimum.
JavaScript jest wyłączony w Twojej przeglądarce internetowej. Włącz go, a następnie odśwież stronę, aby móc w pełni z niej korzystać.