Line data Source code
1 : #include "../../shared_dev/commands/bench/bench.h" 2 : #include "../../shared_dev/commands/dev.h" 3 : 4 : #include <unistd.h> 5 : 6 : void 7 : firedancer_dev_bench_cmd_fn( args_t * args, 8 0 : config_t * config ) { 9 0 : bench_cmd_fn( args, config ); 10 : 11 : /* Sleep parent thread forever, Ctrl+C will terminate. */ 12 0 : for(;;) pause(); 13 0 : } 14 : 15 : action_t fd_action_bench = { 16 : .name = "bench", 17 : .args = bench_cmd_args, 18 : .fn = firedancer_dev_bench_cmd_fn, 19 : .perm = dev_cmd_perm, 20 : .is_local_cluster = 1, 21 : .description = "Test validator TPS benchmark" 22 : };