Skip to content

Commit

Permalink
[benchmark] add paddlex benchmark run scripts (PaddlePaddle#2015)
Browse files Browse the repository at this point in the history
  • Loading branch information
DefTruth authored Jun 5, 2023
1 parent 8d35781 commit 147060a
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
29 changes: 29 additions & 0 deletions benchmark/paddlex/run_gpu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env bash
export CUDA_VISIBLE_DEVICES='0'
bash benchmark_gpu.sh config/config.gpu.ort.fp32.e2e.txt
bash benchmark_gpu.sh config/config.gpu.ort.fp32.txt

bash benchmark_gpu.sh config/config.gpu.paddle.fp32.e2e.txt
bash benchmark_gpu.sh config/config.gpu.paddle.fp32.txt
# rm all paddle_trt/trt cache
find . -name "trt_serialized*" | xargs rm -rf
bash benchmark_gpu_trt.sh config/config.gpu.paddle_trt.fp16.e2e.txt
bash benchmark_gpu_trt.sh config/config.gpu.paddle_trt.fp16.txt
bash benchmark_gpu_trt.sh config/config.gpu.paddle_trt.fp16.h2d.txt
# rm all paddle_trt/trt cache
find . -name "trt_serialized*" | xargs rm -rf
bash benchmark_gpu_trt.sh config/config.gpu.paddle_trt.fp32.e2e.txt
bash benchmark_gpu_trt.sh config/config.gpu.paddle_trt.fp32.txt
bash benchmark_gpu_trt.sh config/config.gpu.paddle_trt.fp32.h2d.txt
# rm all paddle_trt/trt cache
find . -name "trt_serialized*" | xargs rm -rf
bash benchmark_gpu_trt.sh config/config.gpu.trt.fp16.e2e.txt
bash benchmark_gpu_trt.sh config/config.gpu.trt.fp16.txt
bash benchmark_gpu_trt.sh config/config.gpu.trt.fp16.h2d.txt
# rm all paddle_trt/trt cache
find . -name "trt_serialized*" | xargs rm -rf
bash benchmark_gpu_trt.sh config/config.gpu.trt.fp32.e2e.txt
bash benchmark_gpu_trt.sh config/config.gpu.trt.fp32.txt
bash benchmark_gpu_trt.sh config/config.gpu.trt.fp32.h2d.txt
# rm all paddle_trt/trt cache
find . -name "trt_serialized*" | xargs rm -rf
10 changes: 10 additions & 0 deletions benchmark/paddlex/run_x86.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

bash benchmark_x86.sh config/config.x86.ort.fp32.e2e.txt
bash benchmark_x86.sh config/config.x86.ort.fp32.txt

bash benchmark_x86.sh config/config.x86.ov.fp32.e2e.txt
bash benchmark_x86.sh config/config.x86.ov.fp32.txt

bash benchmark_x86.sh config/config.x86.paddle.fp32.e2e.txt
bash benchmark_x86.sh config/config.x86.paddle.fp32.txt

0 comments on commit 147060a

Please sign in to comment.