mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
benchmarks/syscallbench: a few fixes
PiperOrigin-RevId: 513967221
This commit is contained in:
@@ -52,7 +52,7 @@ int main(int argc, char *argv[]) {
|
||||
{0, 0, 0, 0}};
|
||||
int option_index = 0;
|
||||
|
||||
while ((c = getopt_long(argc, argv, "l:s", long_options, &option_index)) !=
|
||||
while ((c = getopt_long(argc, argv, "l:s:", long_options, &option_index)) !=
|
||||
-1) {
|
||||
switch (c) {
|
||||
case 'l':
|
||||
|
||||
@@ -68,7 +68,7 @@ func BenchmarkSyscallbench(b *testing.B) {
|
||||
b.Fatalf("run failed with: %v", err)
|
||||
}
|
||||
b.Run(name, func(b *testing.B) {
|
||||
cmd := []string{"syscallbench", fmt.Sprintf("--loops=%d --syscall %d", b.N, tc.syscallArg)}
|
||||
cmd := []string{"syscallbench", fmt.Sprintf("--loops=%d", b.N), fmt.Sprintf("--syscall=%d", tc.syscallArg)}
|
||||
b.ResetTimer()
|
||||
out, err := container.Exec(ctx, dockerutil.ExecOpts{}, cmd...)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user