Comments (7)
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.
@marxin Please build mold with make USE_MIMALLOC=0
from mold.
The gperftools version of tcmalloc builds with cmake. https://github.com/gperftools/gperftools
from mold.
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.
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.
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.10sIt 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.
Btw. is there any configure option to disable mimalloc and use the default glibc?
from mold.
Related Issues (20)
- -lc not working HOT 3
- --wrap support for MacOS HOT 3
- x86_64-exception-multiple-ehframe fails with GCC 14 HOT 10
- [Question] Is `mold` any compatible at all with wine-tkg (and anything Wine related) to build? HOT 2
- Binaries linked with mold-2.30.0 randomly either work or crash in `_dl_relocate_object` HOT 4
- Fold sold back into mold? HOT 1
- arm-arm_abs-error failed: sorry, unimplemented: Thumb-1 'hard-float' VFP ABI HOT 3
- `mold 2.31.0` build failure when targeting `ARMv6` HOT 3
- retain, used and perhaps wildcard-matching using retain-symbols-file HOT 13
- Missing -z option rodynamic HOT 1
- riscv64-shared-abs-sym fails with 2.31.0 HOT 2
- Statically linked binaries crash with illegal hardware instructions HOT 7
- Cannot build project using tealr and Mold linker HOT 2
- `mold/third-party/mimalloc` can be bumped to `v2.1.6`
- Dependency file has references to temporary file HOT 8
- mold: fatal: unknown command line option: -arch HOT 1
- ninja error "FindFirstFileExA" during build on windows with vs2022 HOT 1
- Error with `cargo build --release` on PPC64LE: Missing `R_PPC64_TPREL16_LO_DS` HOT 2
- Is -z x86-64-vX supported? HOT 2
- Fails to build LLVM 18.1.6 with mold HOT 3
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 mold.