I've been working on my project TUI (Text User Interface) for quite some time now, its a hobby project, so nothing i sit in front of 8hrs/day.
Since the only 'real' programming language i kn[eo]w is Visual Basic, based upon early steps with MS-Batch files. When i 'joined' linux 3 years ago, i was a bit overhelmed upon my first approaches (those were back in 199X) with QT/dont-recall with GUI.
Thus, i followed another dream of mine, and started to write TUI - using BASH.
Anyhow, i've been suggested to re-write it as python, as it would be so much faster.
Well, i finaly feel 'confident' enough to actualy start learning a new language, with the first 'speed' comparisons between a simple example script.
Reason for my question is, BASH seems faster than python using the example tutorial script.
And before i completly (re)-write my already existing and working project, i want to be sure that there WILL be a noticable performance boost...
While i call both scripts like:
I get these result ranges:
py: 0.017 - 0.038
sh: 0.005 - 0.008
Which leads me to the conclusion that bash is faster in displaying.
So i'm quite irritated by the 'promise' my friend gave me, and what i see here.
Not only that bash seems faster (with the above scripts at least, i'm aware that they are very small), also the compare between the fastest and slowest is more than the double for python, while bash is less than double.
Allthough i usualy could blindly trust him on technical stuff, i'm not doing this (anyone for that matter), if it means i have to start from 0 and drop my 'baby'...
Specialy since i just rewrote the core components with the aim for speed/performance/optimizations, i could decrease the time needed to display the 'basic config script' from 1.6 sec (sometimes 2.2) to less than 0.3 sec (on average).$
The screenshot is ment as example how TUI looks like, what i intend to display.
Its that white-blue stuff and those # | and | # borders, note that the variables are read using another script/application that is part of TUI.
So i would like to ask you guys, and your collected experience, if python IS faster than bash in displying info to terminal?
Thank you in advance
Regards
PS: Could not attach screenshot while post is/was not posted (please notify admin)
I want to display a system warning message at the prompt of every live terminal on a sun solaris 8 machine using CDE.
I know this can be done on a console, but what about dtterm and xterm regular windows?
Does anyone know how this is done?
What about a single terminal?
Clear skies,... (2 Replies)
Gurus,
I've been on computers for a while, but I've yet to have the behind-the-scenes knowledge. I'm not sure if this is so much a Unix question as it is a nitty gritty computer one.
We received a customer file which had a "funny apostrophe." When displaying the file via more, the character... (1 Reply)
hi all,
am trying to 'grep' some text from a log file and use the 'cut' command to read from that line i just grep'ed to extract date/time and response times.
code sniplet i am using is :
grep -i 'text to grep' Out.log |
while read LINE;
do
... (11 Replies)
Hi all,
I would like to know how to have a color display in the terminal...
In the sense that,
In many linux terminals,we have color coded for each file type,
green for executable ,blue for dirs and so on...
I wanted to know how i can have the same arrangement in solaris(b-79a)
I am not... (5 Replies)
Hi.
I was, not too long ago, an OS X home user. One of the things I remember from using the Apple-installed Terminal is: whenever an executable that took more than a split second to do its thing was running, its name would appear in the title bar in a way similar to "Terminal: ssh" or "Terminal:... (0 Replies)
Hello all,
I would like a message to be displayed on the shell when someone opens up the terminal - something like a welcome msg with date and time. I know how to do this by running the shell commands but dont know how to display it when a user opens up the terminal?
Thanks in advance (27 Replies)
Hello,
I am doing fluid simulations using OpenFOAM. This program produces a lot of output every time step.
Producing output is surely not the most time consuming part, but I wonder whether writing output to the terminal or writing it into a file is faster.
With thousands of time steps a... (1 Reply)
Want few input related to unix environment and terminal settings:
1. Am trying to find a way to keep the unix terminal display intact even after opening and closing a vi/less file. Currently if I open a vim file in the unix terminal and then close the file,it displays the contents of vim file on... (4 Replies)
I would like to get an opinion for my solution for this task and get feedback about better approach or mistakes I have made.
1. The problem statement, all variables and given/known data:
The task is to create a script which prints information about users whose names are specified in the... (2 Replies)
Hi,
Anyone can help I am just converting the excel file to csv using python, I can get the conversion output but the date not display exactly.
test.xlsx date format
167 1588 risks/SCS JP CAMPANA & CIE.pdf SCS JP CAMPANA & CIE 2 1 1 0 2015-03-16 16:56:25
167 1146 risks/AirBNB... (1 Reply)