-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (26 loc) · 717 Bytes
/
Dockerfile
File metadata and controls
44 lines (26 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
ARG platform=ubuntu
FROM ubuntu:24.04 AS ubuntu
FROM fedora:latest AS fedora
FROM alpine:latest AS alpine
RUN apk add --no-cache bash
FROM ${platform} AS bench-env
# Pull mimalloc-bench
RUN mkdir -p /mimalloc-bench
COPY . /mimalloc-bench
WORKDIR /mimalloc-bench
# Install dependencies
RUN ./build-bench-env.sh packages
# Build benchmarks
RUN ./build-bench-env.sh bench
RUN ./build-bench-env.sh redis
RUN ./build-bench-env.sh rocksdb
RUN ./build-bench-env.sh lean
FROM bench-env AS benchmark
WORKDIR /mimalloc-bench
ARG allocator=mi
ARG benchs=cfrac
ARG repeats=1
RUN ./build-bench-env.sh $allocator
# Run benchmarks
WORKDIR /mimalloc-bench/out/bench
RUN ../../bench.sh $allocator $benchs -r=$repeats