Comments (6)
@kamronbatman first benchmark tests on dynamic gump vs old gump:
Benchmarks are in an ad-hoc branch: modernuo/ModernUO-Benchmarks@a5da66e
Test are made with an AnimalFormGump with references to mobiles or other dependencies removed
from modernuo.
That is amazing!!
from modernuo.
This implementation is ready for merge: could you check the code?
from modernuo.
Do we have to cancel this development due to a different roadmap?
from modernuo.
No, let's continue this. I am sorry I haven't found the time to work on this with you yet.
from modernuo.
Note: The original benchmarks didn't create the packet itself. Since the new gump technique doesn't create the gump in the constructor, we can't just test that. We have to test creating the packet (but not sending). So here is a more fair benchmark against the newest code:
BenchmarkDotNet v0.13.12, Windows 11 (10.0.22631.3447/23H2/2023Update/SunValley3)
12th Gen Intel Core i9-12900K, 1 CPU, 24 logical and 16 physical cores
.NET SDK 8.0.204
[Host] : .NET 8.0.4 (8.0.424.16909), X64 RyuJIT AVX2
Job-ZSGFLZ : .NET 8.0.4 (8.0.424.16909), X64 RyuJIT AVX2
Runtime=.NET 8.0 IterationCount=30 WarmupCount=30
| Method | Mean | Error | StdDev | Median | Ratio | RatioSD | Gen0 | Allocated | Alloc Ratio |
|--------------------- |---------:|---------:|---------:|---------:|------:|--------:|-------:|----------:|------------:|
| LegacyGump | 22.65 us | 0.628 us | 0.921 us | 22.99 us | 1.00 | 0.00 | 0.7935 | 12496 B | 1.000 |
| NewDynamicLayoutGump | 18.33 us | 0.753 us | 1.128 us | 18.94 us | 0.81 | 0.04 | - | 56 B | 0.004 |
Eliminating zlib compression of the layouts and strings (no strings in this benchmark, we will do another for that):
BenchmarkDotNet v0.13.12, Windows 11 (10.0.22631.3447/23H2/2023Update/SunValley3)
12th Gen Intel Core i9-12900K, 1 CPU, 24 logical and 16 physical cores
.NET SDK 8.0.204
[Host] : .NET 8.0.4 (8.0.424.16909), X64 RyuJIT AVX2
Job-IBFLSF : .NET 8.0.4 (8.0.424.16909), X64 RyuJIT AVX2
Runtime=.NET 8.0 IterationCount=30 WarmupCount=30
| Method | Mean | Error | StdDev | Ratio | Gen0 | Allocated | Alloc Ratio |
|--------------------- |---------:|----------:|----------:|------:|-------:|----------:|------------:|
| LegacyGump | 7.234 us | 0.0611 us | 0.0896 us | 1.00 | 0.7935 | 12496 B | 1.000 |
| NewDynamicLayoutGump | 2.769 us | 0.0178 us | 0.0261 us | 0.38 | - | 56 B | 0.004 |
from modernuo.
Related Issues (20)
- Add New Magincia to starting cities for the clients/eras that support it.
- Make Tracking Skill closer to OSI
- [BUG] Feint weapon ability is implemented incorrectly
- Remove IPAddress Intern
- Remove duplicate commands from HelpInfo
- Upgrade Ethics system to use Codegen
- Break up large codegenned files to improve IDE performance
- BloodOath timing is inaccurate
- Boats run into each other causes stuck entities
- Placing Houses next to each other causes z level issues
- Fix seeding/UOG HOT 1
- Make Travel Restrictions configurable
- New loot system HOT 1
- Update TextDefinition to support new Gump API HOT 1
- Libdeflate as drop-in replacement for Zlib compression HOT 4
- Move DisarmRequest/StunRequest to UOContent HOT 1
- Remove unneeded EventSinks
- Add missing animal form abilities
- README.md suggestion HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modernuo.