App Developer File write speedtest 50 Megabyte

Discuss PC Developer and Web Developer projects and features here.
stefan.erni
Valued Contributor
Posts: 752
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

App Developer File write speedtest 50 Megabyte

Post by stefan.erni »

Hi Ben

I wrote a little App for a speedtest for the disk
and tested debug mode and exe mod.

writing Total (51,200,000 bytes)

In debug it's need 115 Sec for 50Mega file = 434kByte/sec
In exe it's need 507 Sec for 50Mega file = 98kByte/sec

Then later I get an error while opening the App again.

I don't need the App anymore but it's strange

regards


Stefan

speed_test_2021-03-19_14-31-28.png
speed_test_2021-03-19_14-31-28.png (29.97 KiB) Viewed 5159 times


error_2021-03-19_15-14-03.png
error_2021-03-19_15-14-03.png (12.82 KiB) Viewed 5159 times
Attachments
FC9_APP_Speedtest.fcsx
(16.04 KiB) Downloaded 193 times

wayne_millard
Posts: 94
Joined: Fri Dec 04, 2020 6:12 pm
Has thanked: 1 time
Been thanked: 9 times

Re: App Developer File write speedtest 50 Megabyte

Post by wayne_millard »

Hi Stefan,

Yes I had the same massage.

Wayne

BenR
Matrix Staff
Posts: 1726
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 438 times
Been thanked: 602 times

Re: App Developer File write speedtest 50 Megabyte

Post by BenR »

Hello,

Does this fix the problem?
FC9_APP_Speedtest.fcsx
(16.05 KiB) Downloaded 220 times
Not sure what's causing this but please let us know if it happens again.

stefan.erni
Valued Contributor
Posts: 752
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

Re: App Developer File write speedtest 50 Megabyte

Post by stefan.erni »

Hi Ben
Yes it's working again
regards
Stefan

stefan.erni
Valued Contributor
Posts: 752
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

Re: App Developer File write speedtest 50 Megabyte

Post by stefan.erni »

Hi Ben

but if I press this button I have again the error.
Attachments
dont_press_2021-03-22_11-33-49.png
dont_press_2021-03-22_11-33-49.png (16.88 KiB) Viewed 5133 times

stefan.erni
Valued Contributor
Posts: 752
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

Re: App Developer File write speedtest 50 Megabyte

Post by stefan.erni »

Hi Ben

FAT is now working very well.
The new command "close file" works perfectly.
Also reload the file header at the end of the recording and save it again with the number of data works perfectly.

But it works with the speed of a PIC32 even if I do this in the App Developer with an SSD.
Can I change the clock from 100 Mega to 1Giga somewhere?
Or how can I increase speed?

regards

Stefan

BenR
Matrix Staff
Posts: 1726
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 438 times
Been thanked: 602 times

Re: App Developer File write speedtest 50 Megabyte

Post by BenR »

Hi Stefan,

Your project is a great benchmark for testing the write speed. I've got some ideas for speeding it up but I will try and tread very carefully to avoid creating any new bugs.

My current time to run your project is 281, though your recording of time passing might not be accurate as the calculations don't quite look right. at the moment 1 minute would equal 100 seconds. I'll see if I can refactor it to be a true representation in seconds.

I'll let you know how I'm getting on.

edit - I've refactored the calculations and the time for me to run the test is now around 148 seconds so this is my new benchmark to beat.

FC9_APP_Speedtest.fcsx
(17.6 KiB) Downloaded 189 times

BenR
Matrix Staff
Posts: 1726
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 438 times
Been thanked: 602 times

Re: App Developer File write speedtest 50 Megabyte

Post by BenR »

I've not confirmed this just yet but the latest run took 31 seconds. :o

Previously when you created a new sector on the file the buffer would be reset to all 0's. I have now gotten rid of this and as well as a few other tickles this has made a massive difference.

I'll do some more testing and let you know when I think it's ready.

BenR
Matrix Staff
Posts: 1726
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 438 times
Been thanked: 602 times

Re: App Developer File write speedtest 50 Megabyte

Post by BenR »

The latest files are now on the update system.

I've updated both the App Developer file component as well as the classic embedded FAT component simulation.

Chatting with Medelec his time is now down at a cool 14 seconds so 3.57MB/s

stefan.erni
Valued Contributor
Posts: 752
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

Re: App Developer File write speedtest 50 Megabyte

Post by stefan.erni »

Hi Ben

Thanks a lot.
Now I get for 50 Mega:
23 Sec in App Simulation = 2.7Mega/Sec
85 Sec in App deploy = 0.588 Mega/Sec
0.125Sec in Matlab = 400Mega/Sec

At the moment i can live with 2.7 mega per second. That is a big improvement and a useful value.
So i can receive signal by bluetooth and save it to the SSD.

But if you could look with one eye how the App Developer could come up with an NTFS file system. Somewhere in the future.
That would be great

regards

Stefan

Post Reply