]>
git.proxmox.com Git - pve-manager.git/blob - test/perftest2.pl
6 use Time
::HiRes
qw( usleep ualarm gettimeofday tv_interval );
8 use PVE
::AccessControl
;
10 my $hostname = PVE
::INotify
::read_file
("hostname");
12 # normally you use username/password,
13 # but we can simply create a ticket if we are root
14 my $ticket = PVE
::AccessControl
::assemble_ticket
('root@pam');
16 my $cmd = "ab -c 10 -n 1000 -k -C 'PVEAuthCookie=$ticket' https://$hostname:8006/api2/json";
18 system($cmd) == 0 || die "command failed - $!\n";