Giter Club home page Giter Club logo

Comments (4)

daanx avatar daanx commented on July 19, 2024

The results are a bit hard to read, if I reformat, I get:

                (std)malloc       mimalloc
test          vector   pector     pector
----------------------------------------------
/64/8192       844ns    860ns      434ns
/2048/8192/   3277ns   2767ns     1077ns

Wow! that are big improvements :-) Thank you for sharing this -- I will try to include this in the mimalloc-bench project as a benchmark.

Thanks again, -- always interested in benchmark results

from mimalloc.

degski avatar degski commented on July 19, 2024

@daanx I'm a bit pissed off, though! ;-)

Because, this podder project (of which the benchmark is part) has become virtually obsolete in one fell swoop. I'll have to file it under 'learning experience' now.

Another interesting observation is to see how bad vc-19.21 is at optimizing its own STL, and how much better clang-cl-9.0 is at it [it's all the same STL, literally the same code being compiled (apart from built_ins in clang/llvm of course)]. Furthermore, the absolute best combination is VS2019 + pt::pector + mimalloc, while the worst is VS2019 + std::vector.

PS: I've updated the pt::pector readme to include pt::mimalloc_allocator with a reference to and a few lines related to mimalloc (and where to find it).

from mimalloc.

degski avatar degski commented on July 19, 2024

@daanx I've looked a the vc results (with std::vector) and it appears optimization could better with /GL (link time code generation) and I have updated the relevant figures. The conclusions still stand, it just corrects (for the better, the result of vc).

                (std)  malloc     mimalloc
test          vector   pector     pector
----------------------------------------------
/64/8192       871ns    860ns      434ns
/2048/8192    2570ns   2001ns     1077ns

The figure in your overview for malloc-backed pt::pector 2048, reported the figure for 4096.

from mimalloc.

daanx avatar daanx commented on July 19, 2024

Thanks so much for including a reference to mimalloc! And thanks for spotting the mistake and giving the updated times -- still amazing to see such difference. I am planning to include pector in the mimalloc-bench repository :-)

from mimalloc.

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.