Descriptive Problem Summary:
So, I am not even sure if this is even the right place, given its not really a *bug*, but its still worth bringing up.
I wrote BYONDBench (https://github.com/AffectedArc07/BYONDBench) a while back for the ability to pick SS13 server hosting hardware, and noticed some interesting things.
SYSTEM
CPU: AMD Ryzen 5900X
RAM speed: 2666mhz (ew)
Windows Results (Tested on Windows 10 Pro)
[Main] [=====] RESULTS [=====]
[FileIO] 1 Big Write Time: 172.083ms
[FileIO] 10k Lines Time: 1250.47ms
[FileIO] 1000 Files Time: 418.106ms
[ImageBlend] 32x32 Time: 708.058ms
[ImageBlend] 64x64 Time: 1864.74ms
[ImageBlend] 128x128 Time: 6578.66ms
[ImageBlend] 256x256 Time: 32048.2ms
[JSON] Decode Time: 29.6s
[JSON] Encode Time: 33.6805ms
[ListSet] Time: 4759.53ms
[MapExpand] Time: 9394.96ms
[Main] Done!
Linux Results (Tested on Ubuntu 20.04.4 LTS)
[Main] [=====] RESULTS [=====]
[FileIO] 1 Big Write Time: 115.159ms
[FileIO] 10k Lines Time: 37.613ms
[FileIO] 1000 Files Time: 19.684ms
[ImageBlend] 32x32 Time: 679.943ms
[ImageBlend] 64x64 Time: 2058.14ms
[ImageBlend] 128x128 Time: 7248.38ms
[ImageBlend] 256x256 Time: 27626.4ms
[JSON] Decode Time: 2.6s
[JSON] Encode Time: 28.117ms
[ListSet] Time: 8081.99ms
[MapExpand] Time: 9647.28ms
[Main] Done!
The main things to point out here are
- File IO is faster on linux, especially for large writes
- List operations tend to be a lot slower on linux (NOTE: Some people get the results to be on par, I however cannot)
- JSON decode is incredibly faster on linux (2.6 seconds as opposed to 29.6 seconds)
Numbered Steps to Reproduce Problem:
1. Run the above benchmark. It will freeze DD, dont worry about it
2. Compare results over different OSs on the same hardware
Expected Results:
The OSs to behave pretty much the same
Actual Results:
See above
Does the problem occur:
Every time? Or how often? Yes
In other games? No, its specialised
In other user accounts? Yes
On other computers? Yes and no (Some people get much faster list times on linux)
When does the problem NOT occur?
No idea
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Unsure, will do on request
Workarounds:
I have no idea
EDIT: Title
ID:2786818
May 1 2022, 12:09 pm
|
|||||||||||||
| |||||||||||||
I'll take a look at the Windows performance and see if anything jumps out as far as the decoding. I can't do anything about file I/O speeds and there's probably no way whatsoever to compare list performance, but the decode should be profilable and that will at least give me something to look at.