Coder Social home page Coder Social logo

Alternatives to Jemalloc about mold HOT 7 CLOSED

rui314 avatar rui314 commented on July 18, 2024
Alternatives to Jemalloc

from mold.

Comments (7)

rui314 avatar rui314 commented on July 18, 2024 2

Ah, thank you for your advice! I tried mimalloc, and it is indeed slightly better than jemalloc. mold runs a few percent faster with mimalloc.

I wanted to give tcmalloc a shot, but it looks like it can't be built with make or cmake, so I'll leave it alone for now.

from mold.

rui314 avatar rui314 commented on July 18, 2024 2

@marxin Please build mold with make USE_MIMALLOC=0

from mold.

pepsiman avatar pepsiman commented on July 18, 2024

The gperftools version of tcmalloc builds with cmake. https://github.com/gperftools/gperftools

from mold.

lazerl0rd avatar lazerl0rd commented on July 18, 2024

Ah, thank you for your advice! I tried mimalloc, and it is indeed slightly better than jemalloc. mold runs a few percent faster with mimalloc.

I wanted to give tcmalloc a shot, but it looks like it can't be built with make or cmake, so I'll leave it alone for now.

As @pepsiman mentioned above, you can build TCMalloc with cmake from the gperftools repository. However, if Microsoft's benchmarks (as well as my preliminary benchmarks) are anything to go by then mimalloc should outperform TCMalloc.

I'm sure you'll compare them both to be sure anyways, and hopefully mold will end up even faster (it's already pretty darn fast).

from mold.

rui314 avatar rui314 commented on July 18, 2024

I tried tcmalloc, and it looks like tcmalloc is the slowest among tcmalloc, tbbmalloc, jemalloc and mimalloc. Here is the chromium link time:

mimalloc: 1.83s
jemalloc: 1.89s
tbbmalloc: 1.96s
tcmalloc: 2.13s
glibc malloc: 3.10s

It is very interesting to see that swapping malloc makes such a huge performance difference.

from mold.

lazerl0rd avatar lazerl0rd commented on July 18, 2024

I tried tcmalloc, and it looks like tcmalloc is the slowest among tcmalloc, tbbmalloc, jemalloc and mimalloc. Here is the chromium link time:

mimalloc: 1.83s
jemalloc: 1.89s
tbbmalloc: 1.96s
tcmalloc: 2.13s
glibc malloc: 3.10s

It is very interesting to see that swapping malloc makes such a huge performance difference.

It is also interesting to see TCMalloc lag behind so much, as Google's claims seemed to suggest it would be at least equivalent to jemalloc - if not faster. However, it's good to see mimalloc live up to Microsoft's claims. Thanks for testing them all.

from mold.

marxin avatar marxin commented on July 18, 2024

Btw. is there any configure option to disable mimalloc and use the default glibc?

from mold.

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.