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.

37 lines
777 B

2 years ago
  1. #!/bin/bash
  2. # m4_ignore(
  3. echo "This is just a script template, not the script (yet) - pass it to 'argbash' to fix this." >&2
  4. exit 11 #)Created by argbash-init v2.10.0
  5. # ARG_OPTIONAL_BOOLEAN([asm])
  6. # ARG_OPTIONAL_BOOLEAN([multi_threads])
  7. # ARG_HELP([<Hyperplonk benchmarks>])
  8. # ARGBASH_GO
  9. # [ <-- needed because of Argbash
  10. if [ "$_arg_multi_threads" = on ]
  11. then
  12. echo "Multi-threads: ON"
  13. # Do nothing
  14. else
  15. echo "Multi-threads: OFF"
  16. export RAYON_NUM_THREADS=1
  17. fi
  18. if [ "$_arg_asm" = on ]
  19. then
  20. echo "Asm feature: ON"
  21. export RUSTFLAGS="-C target-feature=+bmi2,+adx"
  22. else
  23. echo "Asm feature: OFF"
  24. # Do nothing
  25. fi
  26. # Run the benchmark binary
  27. cargo +nightly bench
  28. # ^^^ TERMINATE YOUR CODE BEFORE THE BOTTOM ARGBASH MARKER ^^^
  29. # ] <-- needed because of Argbash