File tree Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ ENV RANLIB=gcc-ranlib-8
26
26
27
27
ENV IROOT=/install
28
28
ENV DROGON_ROOT=$IROOT/drogon
29
+ ENV MIMALLOC_ROOT=$IROOT/mimalloc
29
30
ENV PG_ROOT=$IROOT/postgres-batch_mode_ubuntu
30
31
ENV TEST_PATH=/drogon_benchmark/build
31
32
@@ -53,6 +54,17 @@ WORKDIR $DROGON_ROOT/build
53
54
RUN cmake -DCMAKE_BUILD_TYPE=release ..
54
55
RUN make && make install
55
56
57
+ WORKDIR $IROOT
58
+
59
+ RUN git clone https://github.com/microsoft/mimalloc
60
+
61
+ WORKDIR $MIMALLOC_ROOT
62
+ RUN git checkout v1.6.2 -b v1.6.2
63
+ RUN mkdir -p out/release
64
+ WORKDIR $MIMALLOC_ROOT/out/release
65
+ RUN cmake ../..
66
+ RUN make && make install
67
+
56
68
WORKDIR $TEST_PATH
57
69
58
70
RUN cmake -DCMAKE_BUILD_TYPE=release ..
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ ENV RANLIB=gcc-ranlib-8
26
26
27
27
ENV IROOT=/install
28
28
ENV DROGON_ROOT=$IROOT/drogon
29
+ ENV MIMALLOC_ROOT=$IROOT/mimalloc
29
30
ENV PG_ROOT=$IROOT/postgres-batch_mode_ubuntu
30
31
ENV TEST_PATH=/drogon_benchmark/build
31
32
@@ -53,6 +54,17 @@ WORKDIR $DROGON_ROOT/build
53
54
RUN cmake -DCMAKE_BUILD_TYPE=release ..
54
55
RUN make && make install
55
56
57
+ WORKDIR $IROOT
58
+
59
+ RUN git clone https://github.com/microsoft/mimalloc
60
+
61
+ WORKDIR $MIMALLOC_ROOT
62
+ RUN git checkout v1.6.2 -b v1.6.2
63
+ RUN mkdir -p out/release
64
+ WORKDIR $MIMALLOC_ROOT/out/release
65
+ RUN cmake ../..
66
+ RUN make && make install
67
+
56
68
WORKDIR $TEST_PATH
57
69
58
70
RUN cmake -DCMAKE_BUILD_TYPE=release ..
Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ endforeach()
38
38
39
39
add_executable (${PROJECT_NAME} ${BENCHMARK_SOURCES} )
40
40
find_package (Drogon REQUIRED)
41
- target_link_libraries (${PROJECT_NAME} PRIVATE Drogon::Drogon)
41
+ find_package (mimalloc 1.0 REQUIRED)
42
+ target_link_libraries (${PROJECT_NAME} PRIVATE Drogon::Drogon mimalloc-static )
42
43
43
44
target_include_directories (${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} )
44
45
You can’t perform that action at this time.
0 commit comments