Skip to content

lean-mathlib bench seems to be broken #252

@zooko

Description

@zooko

I noticed lean-mathlib was only taking a few seconds:

~/playground/mimalloc-bench-upstream/out/bench$ time ../../bench.sh sys je sn mi2 rp lean-mathlib 2>&1 | tee ../../../log.34.txt
benchmarking on 88 cores.
use '-h' or '--help' for help on configuration options.

allocators:  sys je sn mi2 rp
tests     :  lean-mathlib
~/playground/mimalloc-bench-upstream/extern/mathlib ~/playground/mimalloc-bench-upstream/out/bench

---- 1: mathlib

run 1: mathlib sys: SYSMALLOC=1 /home/usern/playground/mimalloc-bench-upstream/extern/lean/bin/leanpkg build
preprocess...
mathlib     sys   0:00.47 75328 0.39 0.08 0 32798

run 1: mathlib je: LD_PRELOAD=/home/usern/playground/mimalloc-bench-upstream/extern/je/lib/libjemalloc.so /home/usern/playground/mimalloc-bench-upstream/extern/lean/bin/leanpkg build
preprocess...
mathlib     je    0:00.39 67584 0.31 0.08 0 30444

run 1: mathlib sn: LD_PRELOAD=/home/usern/playground/mimalloc-bench-upstream/extern/sn/release/libsnmallocshim.so /home/usern/playground/mimalloc-bench-upstream/extern/lean/bin/leanpkg build
preprocess...
mathlib     sn    0:00.38 71104 0.31 0.07 0 30138

run 1: mathlib mi2: LD_PRELOAD=/home/usern/playground/mimalloc-bench-upstream/extern/mi2/out/release/libmimalloc.so /home/usern/playground/mimalloc-bench-upstream/extern/lean/bin/leanpkg build
preprocess...
mathlib     mi2   0:00.37 69696 0.31 0.06 0 28967

run 1: mathlib rp: LD_PRELOAD=/home/usern/playground/mimalloc-bench-upstream/extern/rp/bin/linux/release/x86-64/librpmallocwrap.so /home/usern/playground/mimalloc-bench-upstream/extern/lean/bin/leanpkg build
preprocess...
mathlib     rp    0:00.39 73216 0.31 0.08 0 32205
~/playground/mimalloc-bench-upstream/out/bench

results written to: /home/usern/playground/mimalloc-bench-upstream/out/bench/benchres.csv

#------------------------------------------------------------------
# test    alloc   time  rss    user  sys  page-faults page-reclaims
mathlib     sys   00.47 75328 0.39 0.08 0 32798
mathlib     je    00.39 67584 0.31 0.08 0 30444
mathlib     sn    00.38 71104 0.31 0.07 0 30138
mathlib     mi2   00.37 69696 0.31 0.06 0 28967
mathlib     rp    00.39 73216 0.31 0.08 0 32205

Executing the command shown in the directory shown results in:

usern@us1-blade41-d:~/playground/mimalloc-bench-upstream/out/bench$ pushd ~/playground/mimalloc-bench-upstream/extern/mathlib
~/playground/mimalloc-bench-upstream/extern/mathlib ~/playground/mimalloc-bench-upstream/out/bench ~/playground/mimalloc-bench-upstream/out/bench ~/playground/mimalloc-bench-upstream ~/playground/mimalloc-bench-upstream/out/bench
usern@us1-blade41-d:~/playground/mimalloc-bench-upstream/extern/mathlib$ time SYSMALLOC=1 /home/usern/playground/mimalloc-bench-upstream/extern/lean/bin/leanpkg build
configuring leanpkg 0.1
WARNING: leanpkg configurations not specifying `path = "src"` are deprecated.
> lean --make .

real    0m0.470s
user    0m0.382s
sys     0m0.089s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions