Coder Social home page Coder Social logo

Comments (4)

stefanomerotta avatar stefanomerotta commented on May 28, 2024 1

This is the run of your latest rectified benchmark with some fixes in test method code

BenchmarkDotNet v0.13.12, Windows 10 (10.0.19045.4355/22H2/2022Update) (Hyper-V)
11th Gen Intel Core i5-1145G7 2.60GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 8.0.205
[Host] : .NET 8.0.5 (8.0.524.21615), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
.NET 8.0 : .NET 8.0.5 (8.0.524.21615), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI

Job=.NET 8.0 Runtime=.NET 8.0

Method Mean Error StdDev
LibDeflate 19.48 us 0.381 us 0.581 us
Zlib 27.57 us 0.545 us 1.437 us

from modernuo.

stefanomerotta avatar stefanomerotta commented on May 28, 2024

This is the first benchmark from the just created related branch on ModernUO-Benchmarks.
The gain in term of time is not so relevant: the other gain is the compress ratio that is a little better than Zlib.

I think that for that small bytearray (a fake gump in the benchmark) there is not a big difference between Zlib and Libdeflate.

BenchmarkDotNet v0.13.12, Windows 10 (10.0.19045.4355/22H2/2022Update) (Hyper-V)
11th Gen Intel Core i5-1145G7 2.60GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 8.0.204
[Host] : .NET 8.0.4 (8.0.424.16909), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
.NET 8.0 : .NET 8.0.4 (8.0.424.16909), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI

Job=.NET 8.0 Runtime=.NET 8.0

Method Mean Error StdDev Allocated
ZlibComp 21.68 us 0.433 us 0.635 us -
LibdeflateComp 19.79 us 0.385 us 0.653 us -

@kamronbatman could you pls check the benchmark in case I made a mistake?

from modernuo.

kamronbatman avatar kamronbatman commented on May 28, 2024

I like this!

Let's move forward. I'll clone the zlib.bindings repo and we can modify it to use libdeflate. Then replace the dependency/update readme in ModernUO.

from modernuo.

kamronbatman avatar kamronbatman commented on May 28, 2024

Merged in #1774

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.