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 : static void 7 0 : bench_cmd_topo( config_t * config ) { 8 0 : config->development.sandbox = 0; 9 0 : config->development.no_clone = 1; 10 0 : } 11 : 12 : void 13 : firedancer_dev_bench_cmd_fn( args_t * args, 14 0 : config_t * config ) { 15 0 : bench_cmd_fn( args, config, 1 ); 16 : 17 : /* Sleep parent thread forever, Ctrl+C will terminate. */ 18 0 : for(;;) pause(); 19 0 : } 20 : 21 : action_t fd_action_bench = { 22 : .name = "bench", 23 : .args = bench_cmd_args, 24 : .fn = firedancer_dev_bench_cmd_fn, 25 : .perm = dev_cmd_perm, 26 : .topo = bench_cmd_topo, 27 : .is_local_cluster = 1, 28 : .description = "Test validator TPS benchmark" 29 : };