Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
No results found
Show changes
cpuinfo.PNG

19 KiB

This diff is collapsed.
#!/usr/bin/env bash
NTEST=50
TAILLE=1000000
echo -e "Structure\tTest\tOperation\tnbOperation\tCPU\tMem"
for i in `seq $NTEST`
do
nbOperation=`expr $i \* 10`;
for type in "Tableau" "Array" "Linked" "Maillon"
do
for operation in "AddTete" "AddQueue" "AddRandom" "Get" "RemoveTete" "RemoveMiddle" "RemoveQueue" "RemoveRandom"
do
res=`(/usr/bin/time -f "%U\t%M" java -jar Main.jar $type $TAILLE $operation $nbOperation > /dev/null) 2>&1`
echo -e "$type\t$i\t$operation\t$nbOperation\t$res"
done
done
done
tpsExecutionCpu.PNG

102 KiB

tpsExecutionzoom.PNG

140 KiB