Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
z
Classes
Class List
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Properties
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
grpc
third_party
libuv
test
run-benchmarks.c
Go to the documentation of this file.
1
/* Copyright Joyent, Inc. and other Node contributors. All rights reserved.
2
*
3
* Permission is hereby granted, free of charge, to any person obtaining a copy
4
* of this software and associated documentation files (the "Software"), to
5
* deal in the Software without restriction, including without limitation the
6
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7
* sell copies of the Software, and to permit persons to whom the Software is
8
* furnished to do so, subject to the following conditions:
9
*
10
* The above copyright notice and this permission notice shall be included in
11
* all copies or substantial portions of the Software.
12
*
13
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19
* IN THE SOFTWARE.
20
*/
21
22
#include <stdio.h>
23
#include <
string.h
>
24
25
#include "
runner.h
"
26
#include "
task.h
"
27
28
/* Actual benchmarks and helpers are defined in benchmark-list.h */
29
#include "
benchmark-list.h
"
30
31
32
static
int
maybe_run_test
(
int
argc,
char
**argv);
33
34
35
int
main
(
int
argc,
char
**argv) {
36
platform_init
(argc, argv);
37
38
switch
(argc) {
39
case
1:
return
run_tests
(1);
40
case
2:
return
maybe_run_test
(argc, argv);
41
case
3:
return
run_test_part
(argv[1], argv[2]);
42
default
:
43
fprintf(
stderr
,
"Too many arguments.\n"
);
44
fflush(
stderr
);
45
return
EXIT_FAILURE;
46
}
47
48
return
EXIT_SUCCESS;
49
}
50
51
52
static
int
maybe_run_test
(
int
argc,
char
**argv) {
53
if
(strcmp(argv[1],
"--list"
) == 0) {
54
print_tests
(
stdout
);
55
return
0;
56
}
57
58
if
(strcmp(argv[1],
"spawn_helper"
) == 0) {
59
printf
(
"hello world\n"
);
60
return
42;
61
}
62
63
return
run_test
(argv[1], 1, 1);
64
}
benchmark-list.h
task.h
demumble_test.stdout
stdout
Definition:
demumble_test.py:38
run_test_part
int run_test_part(const char *test, const char *part)
Definition:
runner.c:369
string.h
printf
_Use_decl_annotations_ int __cdecl printf(const char *_Format,...)
Definition:
cs_driver.c:91
platform_init
void platform_init(int argc, char **argv)
Definition:
runner-unix.c:70
print_tests
void print_tests(FILE *stream)
Definition:
runner.c:404
python_utils.port_server.stderr
stderr
Definition:
port_server.py:51
run_tests
int run_tests(int benchmark_output)
Definition:
runner.c:77
maybe_run_test
static int maybe_run_test(int argc, char **argv)
Definition:
run-benchmarks.c:52
runner.h
main
int main(int argc, char **argv)
Definition:
run-benchmarks.c:35
tests.stress.client.run_test
def run_test(args)
Definition:
src/python/grpcio_tests/tests/stress/client.py:116
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:14