dev/c/malloc_speed_test/run.sh

14 lines
414 B
Bash
Raw Normal View History

2011-04-28 14:42:44 +04:00
#!/bin/bash
echo -e "\n\nmalloc_speed_test.c test:"
cc -O2 malloc_speed_test.c -o malloc_speed_test && time ./malloc_speed_test
2011-04-28 14:42:44 +04:00
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 (вычесть 279мс на init()):"
cc -O2 pool_list.c -o pool_list && time ./pool_list