You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

14 lines
423 B

  1. #!/bin/sh
  2. gcc ex4.c -o ex4
  3. printf "time ./ex4 10000000 1\n" > ex4.txt
  4. time ./ex4 10000000 1 2>> ex4.txt
  5. printf "time ./ex4 10000000 2\n" >> ex4.txt
  6. time ./ex4 10000000 2 2>> ex4.txt
  7. printf "time ./ex4 10000000 4\n" >> ex4.txt
  8. time ./ex4 10000000 4 2>> ex4.txt
  9. printf "time ./ex4 10000000 10\n" >> ex4.txt
  10. time ./ex4 10000000 10 2>> ex4.txt
  11. printf "time ./ex4 10000000 100\n" >> ex4.txt
  12. time ./ex4 10000000 100 2>> ex4.txt