generate_raw_data_bs.sh 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. echo "Running the Binary Experiments (Basic)"
  2. cd ..
  3. nitrs=1
  4. for itr in $(seq 1 $nitrs); do
  5. echo $itr
  6. echo "bssize: 16\nis_optimized: 0\n" > "repro/data/log_basic_bs_preproc_16_itr_$itr"
  7. ./docker/run-experiment -p m:17 r17:17 c:17 p:64 >> "repro/data/log_basic_bs_preproc_16_itr_$itr"
  8. echo "(basic preproc BS size 16), iteration $itr done"
  9. echo "bssize: 16\nis_optimized: 0\n" > "repro/data/log_basic_bs_online_16_itr_$itr"
  10. ./docker/run-experiment -t 64 bbsearch 16 >> "repro/data/log_basic_bs_online_16_itr_$itr"
  11. echo "(basic online BS size 16), iteration $itr done"
  12. done
  13. nitrs=1
  14. for itr in $(seq 1 $nitrs); do
  15. echo "bssize: 18\nis_optimized: 0\n" > "repro/data/log_basic_bs_preproc_18_itr_$itr"
  16. ./docker/run-experiment -p m:19 r19:19 c:19 p:64 >> "repro/data/log_basic_bs_preproc_18_itr_$itr"
  17. echo "(basic preproc BS size 18), iteration $itr done"
  18. echo "bssize: 18\nis_optimized: 0\n" > "repro/data/log_basic_bs_online_18_itr_$itr"
  19. ./docker/run-experiment -t 64 bbsearch 18 >> "repro/data/log_basic_bs_online_18_itr_$itr"
  20. echo "(basic online BS size 18), iteration $itr done"
  21. done
  22. nitrs=1
  23. for itr in $(seq 1 $nitrs); do
  24. echo "bssize: 20\nis_optimized: 0\n" > "repro/data/log_basic_bs_preproc_20_itr_$itr"
  25. ./docker/run-experiment -p m:21 r21:21 c:21 p:64 >> "repro/data/log_basic_bs_preproc_20_itr_$itr"
  26. echo "(basic preproc BS size 20), iteration $itr done"
  27. echo "bssize: 20\nis_optimized: 0\n" > "repro/data/log_basic_bs_online_20_itr_$itr"
  28. ./docker/run-experiment -t 64 bbsearch 20 >> "repro/data/log_basic_bs_online_20_itr_$itr"
  29. echo "(basic online BS size 20), iteration $itr done"
  30. done
  31. nitrs=1
  32. for itr in $(seq 1 $nitrs); do
  33. echo "bssize: 22\nis_optimized: 0\n" > "repro/data/log_basic_bs_preproc_22_itr_$itr"
  34. ./docker/run-experiment -p m:23 r23:23 c:23 p:64 >> "repro/data/log_basic_bs_preproc_22_itr_$itr"
  35. echo "(basic preproc BS size 22), iteration $itr done"
  36. echo "bssize: 22\nis_optimized: 0\n" > "repro/data/log_basic_bs_online_22_itr_$itr"
  37. ./docker/run-experiment -t 64 bbsearch 22 >> "repro/data/log_basic_bs_online_22_itr_$itr"
  38. echo "(basic online BS size 22), iteration $itr done"
  39. done
  40. nitrs=1
  41. for itr in $(seq 1 $nitrs); do
  42. echo "bssize: 24\nis_optimized: 0\n" > "repro/data/log_basic_bs_preproc_24_itr_$itr"
  43. ./docker/run-experiment -p m:25 r25:25 c:25 p:64 >> "repro/data/log_basic_bs_preproc_24_itr_$itr"
  44. echo "(basic preproc BS size 24), iteration $itr done"
  45. echo "bssize: 24\nis_optimized: 0\n" > "repro/data/log_basic_bs_online_24_itr_$itr"
  46. ./docker/run-experiment -t 64 bbsearch 24 >> "repro/data/log_basic_bs_online_24_itr_$itr"
  47. echo "(basic online BS size 24), iteration $itr done"
  48. done
  49. nitrs=1
  50. for itr in $(seq 1 $nitrs); do
  51. echo "bssize: 26\nis_optimized: 0\n" > "repro/data/log_basic_bs_preproc_26_itr_$itr"
  52. ./docker/run-experiment -p m:27 r27:27 c:27 p:64 >> "repro/data/log_basic_bs_preproc_26_itr_$itr"
  53. echo "(basic preproc BS size 26), iteration $itr done"
  54. echo "bssize: 26\nis_optimized: 0\n" > "repro/data/log_basic_bs_online_26_itr_$itr"
  55. ./docker/run-experiment -t 64 bbsearch 26 >> "repro/data/log_basic_bs_online_26_itr_$itr"
  56. echo "(online preproc BS size 26), iteration $itr done"
  57. done
  58. echo "Running the Binary Search Experiments (Optimized)"
  59. nitrs=1
  60. for itr in $(seq 1 $nitrs); do
  61. echo "bssize: 16\nis_optimized: 1\n" > "repro/data/log_opt_bs_preproc_16_itr_$itr"
  62. ./docker/run-experiment -p i16:1 c:17 p:64 >> "repro/data/log_opt_bs_preproc_16_itr_$itr"
  63. echo "(optimized preproc BS size 16), iteration $itr done"
  64. echo "bssize: 16\nis_optimized: 1\n" > "repro/data/log_opt_bs_online_16_itr_$itr"
  65. ./docker/run-experiment -t 64 bsearch 16 >> "repro/data/log_opt_bs_online_16_itr_$itr"
  66. echo "(optimized online BS size 16), iteration $itr done"
  67. echo "bssize: 18\nis_optimized: 1\n" > "repro/data/log_opt_bs_preproc_18_itr_$itr"
  68. ./docker/run-experiment -p i18:1 c:19 p:64 >> "repro/data/log_opt_bs_preproc_18_itr_$itr"
  69. echo "(optimized preproc BS size 18), iteration $itr done"
  70. echo "bssize: 18\nis_optimized: 1\n" > "repro/data/log_opt_bs_online_18_itr_$itr"
  71. ./docker/run-experiment -t 64 bsearch 18 >> "repro/data/log_opt_bs_online_18_itr_$itr"
  72. echo "(optimized online BS size 18), iteration $itr done"
  73. echo "bssize: 20\nis_optimized: 1\n" > "repro/data/log_opt_bs_preproc_20_itr_$itr"
  74. ./docker/run-experiment -p i20:1 c:21 p:64 >> "repro/data/log_opt_bs_preproc_20_itr_$itr"
  75. echo "(optimized preproc BS size 20), iteration $itr done"
  76. echo "bssize: 20\nis_optimized: 1\n" > "repro/data/log_opt_bs_online_20_itr_$itr"
  77. ./docker/run-experiment -t 64 bsearch 20 >> "repro/data/log_opt_bs_online_20_itr_$itr"
  78. echo "(optimized online BS size 20), iteration $itr done"
  79. echo "bssize: 22\nis_optimized: 1\n" > "repro/data/log_opt_bs_preproc_22_itr_$itr"
  80. ./docker/run-experiment -p i22:1 c:23 p:64 >> "repro/data/log_opt_bs_preproc_22_itr_$itr"
  81. echo "(optimized preproc BS size 22), iteration $itr done"
  82. echo "bssize: 22\nis_optimized: 1\n" > "repro/data/log_opt_bs_online_22_itr_$itr"
  83. ./docker/run-experiment -t 64 bsearch 22 >> "repro/data/log_opt_bs_online_22_itr_$itr"
  84. echo "(optimized online BS size 22), iteration $itr done"
  85. echo "bssize: 24\nis_optimized: 1\n" > "repro/data/log_opt_bs_preproc_24_itr_$itr"
  86. ./docker/run-experiment -p i24:1 c:25 p:64 >> "repro/data/log_opt_bs_preproc_24_itr_$itr"
  87. echo "(optimized preproc BS size 24), iteration $itr done"
  88. echo "bssize: 24\nis_optimized: 1\n" > "repro/data/log_opt_bs_online_24_itr_$itr"
  89. ./docker/run-experiment -t 64 bsearch 24 >> "repro/data/log_opt_bs_online_24_itr_$itr"
  90. echo "(optimized online BS size 24), iteration $itr done"
  91. echo "bssize: 26\nis_optimized: 1\n" > "repro/data/log_opt_bs_preproc_26_itr_$itr"
  92. ./docker/run-experiment -p i26:1 c:27 p:64 >> "repro/data/log_opt_bs_preproc_26_itr_$itr"
  93. echo "(optimized preproc BS size 26), iteration $itr done"
  94. echo "bssize: 26\nis_optimized: 1\n" > "repro/data/log_opt_bs_online_26_itr_$itr"
  95. ./docker/run-experiment -t 64 bsearch 26 >> "repro/data/log_opt_bs_online_26_itr_$itr"
  96. echo "(optimized online BS size 26), iteration $itr done"
  97. echo "bssize: 28\nis_optimized: 1\n" > "repro/data/log_opt_bs_preproc_28_itr_$itr"
  98. ./docker/run-experiment -p i28:1 c:29 p:64 >> "repro/data/log_opt_bs_preproc_28_itr_$itr"
  99. echo "(optimized preproc BS size 28), iteration $itr done"
  100. echo "bssize: 28\nis_optimized: 1\n" > "repro/data/log_opt_bs_online_28_itr_$itr"
  101. ./docker/run-experiment -t 64 bsearch 28 >> "repro/data/log_opt_bs_online_28_itr_$itr"
  102. echo "(optimized online BS size 28), iteration $itr done"
  103. done