Giter Club home page Giter Club logo

Comments (6)

stefanomerotta avatar stefanomerotta commented on May 29, 2024

@kamronbatman first benchmark tests on dynamic gump vs old gump:

image

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.

kamronbatman avatar kamronbatman commented on May 29, 2024

That is amazing!!

from modernuo.

stefanomerotta avatar stefanomerotta commented on May 29, 2024

This implementation is ready for merge: could you check the code?

from modernuo.

stefanomerotta avatar stefanomerotta commented on May 29, 2024

Do we have to cancel this development due to a different roadmap?

from modernuo.

kamronbatman avatar kamronbatman commented on May 29, 2024

No, let's continue this. I am sorry I haven't found the time to work on this with you yet.

from modernuo.

kamronbatman avatar kamronbatman commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.