View Single Post
Old 12-16-2022, 07:00 AM   #45
Renate
Wizard
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 2,408
Karma: 10000009
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
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.

This is my Poke3 on 3.2.4. It seems pretty linear.
Code:
Poke3:/sdcard/Test # /data/local/tmp/alpha.sh
   1001    8002   51898
    0m00.06s real     0m00.04s user     0m00.04s system
   2001   16002  103788
    0m00.08s real     0m00.07s user     0m00.05s system
   3001   24002  155678
    0m00.15s real     0m00.10s user     0m00.09s system
   4001   32002  207568
    0m00.13s real     0m00.07s user     0m00.12s system
   5001   40002  259458
    0m00.21s real     0m00.13s user     0m00.15s system
   6001   48002  311348
    0m00.22s real     0m00.16s user     0m00.15s system
   7001   56002  363238
    0m00.22s real     0m00.15s user     0m00.16s system
   8001   64002  415128
    0m00.25s real     0m00.14s user     0m00.21s system
   9001   72002  467018
    0m00.29s real     0m00.15s user     0m00.26s system
  10001   80002  518908
    0m00.30s real     0m00.20s user     0m00.22s system
  11001   88002  570798
    0m00.34s real     0m00.16s user     0m00.33s system
  12001   96002  622688
    0m00.35s real     0m00.22s user     0m00.27s system
  13001  104002  674578
    0m00.42s real     0m00.20s user     0m00.38s system
  14001  112002  726468
    0m00.45s real     0m00.29s user     0m00.34s system
  15001  120002  778358
    0m00.48s real     0m00.33s user     0m00.33s system
  16001  128002  830248
    0m00.49s real     0m00.26s user     0m00.41s system
  17001  136002  882138
    0m00.53s real     0m00.30s user     0m00.42s system
  18001  144002  934028
    0m00.58s real     0m00.34s user     0m00.45s system
  19001  152002  985918
    0m00.56s real     0m00.29s user     0m00.49s system
  20001  160002 1037808
    0m00.59s real     0m00.27s user     0m00.56s system
  21001  168002 1089698
    0m00.63s real     0m00.26s user     0m00.61s system
  22001  176002 1141588
    0m00.66s real     0m00.43s user     0m00.47s system
  23001  184002 1193478
    0m00.66s real     0m00.43s user     0m00.49s system
  24001  192002 1245368
    0m00.71s real     0m00.37s user     0m00.60s system
  25001  200002 1297258
    0m00.72s real     0m00.39s user     0m00.61s system
  26001  208002 1349148
    0m00.79s real     0m00.41s user     0m00.67s system

Last edited by Renate; 12-16-2022 at 07:19 AM.
Renate is online now   Reply With Quote