I have a program which I run by command:
./my-program.sh 10,31s user 8,13s system 38% cpu 47,308 total
but I don't know, why total time is so long when the system and user time is so short..
Do you anybody know how can I determine why my program takes so long?
Here's the script:
#!/bin/bash FILE=message.tb mysql -uroot -ptest --default-character-set=utf8mb4 -e 'select * from message;' mydatabase > $FILE cat $FILE | while read; do ./my-program; done
./my-program is written in C and it transfers the data from my database and saves it.