Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Memblocks vs Arrays speed test program (submit your phone/ tablet results!)

Author
Message
Daniel TGC
Retired Moderator
17
Years of Service
User Offline
Joined: 19th Feb 2007
Location: TGC
Posted: 10th May 2013 14:44 Edited at: 11th May 2013 02:03
Hi guys,

I wondered how fast Memblocks and Arrays are when being created, having large values written to them and being read again, so I threw together a program to test this.



If you have any suggestions for improvement, or see any problems with my methods please feel free to comment. I\'m also running these on various hardware to see the difference in memory performance.

PC Data dump (AMD X4 640 CPU, 6GB DDR3 PC-12800 RAM, Windows 8 64-bit OS, AMD 6670 1GB GPU, Kingston 256GB SSD, Samsung Spinpoint 1TB, 320GB 2.5inch laptop drive, 160GB 2.5inch laptop drive):



My Sony Xperia Play R800i gives

Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 10th May 2013 14:54
Here's mine:
Windows 7 32-bit. 4GB RAM DDR3, i7-820QM.


Daniel TGC
Retired Moderator
17
Years of Service
User Offline
Joined: 19th Feb 2007
Location: TGC
Posted: 10th May 2013 19:30 Edited at: 10th May 2013 19:33
I completely misread my own results before, so I've compiled them into a bar chart for easier comparison.



So in conclusion, if you want to speed up your program, try using memblocks for bytes and floats. It will work better if you have any intensive read/write memory operations going using those types.

If you are using integer's then arrays appear to be slightly faster for read and write operations but are still much slower when creating them.

Attachments

Login to view attachments
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 10th May 2013 20:10 Edited at: 10th May 2013 20:13
Here's my results, almost twice as fast than you guys
i7-3770k
16GB DDR3
Win7-64






When you edited your post, your code got messed up. It added escape characters everywhere you had quotes for your strings. I fixed it.


I made a graph for ya too. I put arrays and memblocks side by side to make it easier to make the comparisons.


"You're all wrong. You're all idiots." ~Fluffy Rabbit

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-05-06 15:00:13
Your offset time is: 2024-05-06 15:00:13