diff options
| author | liuxueli <[email protected]> | 2024-06-19 01:59:53 +0000 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2024-06-19 01:59:53 +0000 |
| commit | bfc54a6289d798528303d1923d4c74f3cee84218 (patch) | |
| tree | e15fa29ec64a39a9d746dbf4993982df0b06aaca /bin | |
| parent | 3ceb02698316b2ad5f7570b30c6f180d0d7fd603 (diff) | |
Feature: performance test case
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/dns_decoder.toml | 3 | ||||
| -rw-r--r-- | bin/dns_decoder_local_perf_hist.sh | 27 |
2 files changed, 30 insertions, 0 deletions
diff --git a/bin/dns_decoder.toml b/bin/dns_decoder.toml index 01957e3..d60dc6b 100644 --- a/bin/dns_decoder.toml +++ b/bin/dns_decoder.toml @@ -14,4 +14,7 @@ stat_interval_time_s=5 stat_output="metrics/dns_decoder_local_stat.json" [decoder.dns.test] +perf_worker_thread_num=1 +write_result_enable="no" commit_result_enable="yes" +decode_resource_record_enable="no" diff --git a/bin/dns_decoder_local_perf_hist.sh b/bin/dns_decoder_local_perf_hist.sh new file mode 100644 index 0000000..11a48e2 --- /dev/null +++ b/bin/dns_decoder_local_perf_hist.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +ARGC=$# +EXPORTER=/opt/tsg/framework/bin/fieldstat_exporter.py +TARGET=/opt/tsg/sapp/metrics/dns_decoder_perf_test.json + +case $1 in + -h|--help) + echo "$0" + echo "Usage: [exporter] [target]" + echo " exporter: path of exporter, default is $EXPORTER" + echo " target: path of target file, default is $TARGET" + exit 0 + ;; +esac + +case $ARGC in + 1) + EXPORTER=$1 + ;; + 2) + EXPORTER=$1 + TARGET=$2 + ;; +esac +#new version +python3 $EXPORTER local -b 0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,0.99 -f summary -j $TARGET
\ No newline at end of file |
