View Single Post
Old 12-17-2022, 11:48 PM   #65
ottischwenk
Wizard
ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.
 
ottischwenk's Avatar
 
Posts: 2,871
Karma: 3933245
Join Date: Sep 2012
Location: Salzburg AT
Device: Boox 4/14, Like-/Meebook 1/8, Tolino 1/10, Kobo 0/5, Kindle 0/3
Quote:
Originally Posted by Renate View Post
This is crazy. It's a speed ratio of 500.

Ok, here's a boring test you can make to see if there is some threshold for when it gets slow.
I'm running it on my Poke3. I see that the "touch" file creation is pretty darn slow, but the "ls" seems fast (so far).

Here's the script. Copy paste it into alpha.sh
Code:
#!/system/bin/sh

for a in a b c d e f g h i j k l m n o p q r s t u v w x y z
do
i=0; while [ $((i)) -lt 1000 ]; do touch $a$i; i=$(($i+1)); done;
time ls -l | wc
done
Then:
Code:
C:\>adb push alpha.sh /data/local/tmp
C:\>adb shell
$ cd /sdcard
$ mkdir Test
$ cd Test
$ chmod 755 /data/local/tmp/alpha.sh
$ /data/local/tmp/alpha.sh
Then go and make breakfast.
Hmmmm:
Quote:
Originally Posted by Renate
This is really weird stuff. Whoever wants to report it to Onyx is welcome to include my script.
Code:
Microsoft Windows [Version 10.0.22621.963]
(c) Microsoft Corporation. Alle Rechte vorbehalten.

d:\_Reader-Smartphone\ADB>adb push alpha.sh /data/local/tmp
alpha.sh: 1 file pushed. 0.0 MB/s (178 bytes in 0.032s)

d:\_Reader-Smartphone\ADB>adb shell
BOOX:/ $ cd /sdcard
BOOX:/sdcard $ mkdir Test
BOOX:/sdcard $ chmod 755 /data/local/tmp/alpha.sh
BOOX:/sdcard $ /data/local/tmp/alpha.sh
/system/bin/sh: /data/local/tmp/alpha.sh: No such file or directory
1|BOOX:/sdcard $
alpha.sh
Code:
#!/system/bin/sh

for a in a b c d e f g h i j k l m n o p q r s t u v w x y z
do
i=0; while [ $((i)) -lt 1000 ]; do touch $a$i; i=$(($i+1)); done;
time ls -l | wc
done
/system/bin/sh: /data/local/tmp/alpha.sh: No such file or directory

Last edited by ottischwenk; 12-18-2022 at 03:03 AM.
ottischwenk is online now   Reply With Quote