dev/c/malloc_speed_test/run.sh

14 lines
414 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
echo -e "\n\nmalloc_speed_test.c test:"
cc -O2 malloc_speed_test.c -o malloc_speed_test && time ./malloc_speed_test
echo -e "\n\nvector_add.cpp test:"
c++ -O2 vector_add.cpp -o vector_add && time ./vector_add
echo -e "\n\npool1.c test:"
cc -O2 pool1.c -o pool1 && time ./pool1
echo -e "\n\npool_list.c test (вычесть 121мс на init()):"
cc -O2 pool_list.c -o pool_list && time ./pool_list