Skip to content

Commit

Permalink
Setting up arguments for profiling purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
ayakayorihiro committed Dec 12, 2024
1 parent 3057347 commit 1f167a7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions frontends/queues/test_data_gen/gen_test_data.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
#!/usr/bin/bash

num_cmds=20000
if [[ $# -eq 2 ]]; then # Generate custom-length command list to the specified output directory
num_cmds=$1
tests_dir=$2
mkdir -p ${tests_dir}/binheap/round_robin ${tests_dir}/binheap/strict ${tests_dir}/round_robin ${tests_dir}/strict # NOTE: hacky and will break when other tests are created.
echo "Number of commands: ${num_cmds}; output directory: ${tests_dir}"
else
num_cmds=20000
tests_dir="$(dirname "$0")/../tests"
fi

queue_size=16

tests_dir="$(dirname "$0")/../tests"
data_gen_dir="$(dirname "$0")"


Expand Down

0 comments on commit 1f167a7

Please sign in to comment.