2011-04-28 14:42:44 +04:00
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
2011-04-29 15:41:02 +04:00
|
|
|
|
echo -e "\n\nmalloc_speed_test.c test:"
|
2011-04-29 11:43:18 +04:00
|
|
|
|
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:"
|
2011-04-29 11:43:18 +04:00
|
|
|
|
c++ -O2 vector_add.cpp -o vector_add && time ./vector_add
|
|
|
|
|
|
2011-04-29 15:41:02 +04:00
|
|
|
|
echo -e "\n\npool1.c test:"
|
2011-04-29 11:43:18 +04:00
|
|
|
|
cc -O2 pool1.c -o pool1 && time ./pool1
|
2011-04-29 15:41:02 +04:00
|
|
|
|
|
2011-04-29 16:00:49 +04:00
|
|
|
|
echo -e "\n\npool_list.c test (вычесть 279мс на init()):"
|
2011-04-29 15:41:02 +04:00
|
|
|
|
cc -O2 pool_list.c -o pool_list && time ./pool_list
|