benchmark-list.h
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 BENCHMARK_DECLARE (sizes)
23 BENCHMARK_DECLARE (loop_count)
24 BENCHMARK_DECLARE (loop_count_timed)
25 BENCHMARK_DECLARE (ping_pongs)
27 BENCHMARK_DECLARE (tcp_write_batch)
28 BENCHMARK_DECLARE (tcp4_pound_100)
29 BENCHMARK_DECLARE (tcp4_pound_1000)
30 BENCHMARK_DECLARE (pipe_pound_100)
31 BENCHMARK_DECLARE (pipe_pound_1000)
32 BENCHMARK_DECLARE (tcp_pump100_client)
33 BENCHMARK_DECLARE (tcp_pump1_client)
34 BENCHMARK_DECLARE (pipe_pump100_client)
35 BENCHMARK_DECLARE (pipe_pump1_client)
36 
37 BENCHMARK_DECLARE (tcp_multi_accept2)
38 BENCHMARK_DECLARE (tcp_multi_accept4)
39 BENCHMARK_DECLARE (tcp_multi_accept8)
40 
41 /* Run until X packets have been sent/received. */
42 BENCHMARK_DECLARE (udp_pummel_1v1)
43 BENCHMARK_DECLARE (udp_pummel_1v10)
44 BENCHMARK_DECLARE (udp_pummel_1v100)
45 BENCHMARK_DECLARE (udp_pummel_1v1000)
46 BENCHMARK_DECLARE (udp_pummel_10v10)
47 BENCHMARK_DECLARE (udp_pummel_10v100)
48 BENCHMARK_DECLARE (udp_pummel_10v1000)
49 BENCHMARK_DECLARE (udp_pummel_100v100)
50 BENCHMARK_DECLARE (udp_pummel_100v1000)
51 BENCHMARK_DECLARE (udp_pummel_1000v1000)
52 
53 /* Run until X seconds have elapsed. */
54 BENCHMARK_DECLARE (udp_timed_pummel_1v1)
55 BENCHMARK_DECLARE (udp_timed_pummel_1v10)
56 BENCHMARK_DECLARE (udp_timed_pummel_1v100)
57 BENCHMARK_DECLARE (udp_timed_pummel_1v1000)
58 BENCHMARK_DECLARE (udp_timed_pummel_10v10)
59 BENCHMARK_DECLARE (udp_timed_pummel_10v100)
60 BENCHMARK_DECLARE (udp_timed_pummel_10v1000)
61 BENCHMARK_DECLARE (udp_timed_pummel_100v100)
62 BENCHMARK_DECLARE (udp_timed_pummel_100v1000)
63 BENCHMARK_DECLARE (udp_timed_pummel_1000v1000)
64 
65 BENCHMARK_DECLARE (getaddrinfo)
66 BENCHMARK_DECLARE (fs_stat)
67 BENCHMARK_DECLARE (async1)
68 BENCHMARK_DECLARE (async2)
69 BENCHMARK_DECLARE (async4)
70 BENCHMARK_DECLARE (async8)
71 BENCHMARK_DECLARE (async_pummel_1)
72 BENCHMARK_DECLARE (async_pummel_2)
73 BENCHMARK_DECLARE (async_pummel_4)
74 BENCHMARK_DECLARE (async_pummel_8)
76 BENCHMARK_DECLARE (thread_create)
77 BENCHMARK_DECLARE (million_async)
78 BENCHMARK_DECLARE (million_timers)
79 HELPER_DECLARE (tcp4_blackhole_server)
80 HELPER_DECLARE (tcp_pump_server)
81 HELPER_DECLARE (pipe_pump_server)
82 HELPER_DECLARE (tcp4_echo_server)
83 HELPER_DECLARE (pipe_echo_server)
85 
87  BENCHMARK_ENTRY (sizes)
88  BENCHMARK_ENTRY (loop_count)
89  BENCHMARK_ENTRY (loop_count_timed)
90 
91  BENCHMARK_ENTRY (ping_pongs)
92  BENCHMARK_HELPER (ping_pongs, tcp4_echo_server)
93 
94  BENCHMARK_ENTRY (tcp_write_batch)
95  BENCHMARK_HELPER (tcp_write_batch, tcp4_blackhole_server)
96 
97  BENCHMARK_ENTRY (tcp_pump100_client)
98  BENCHMARK_HELPER (tcp_pump100_client, tcp_pump_server)
99 
100  BENCHMARK_ENTRY (tcp_pump1_client)
101  BENCHMARK_HELPER (tcp_pump1_client, tcp_pump_server)
102 
103  BENCHMARK_ENTRY (tcp4_pound_100)
104  BENCHMARK_HELPER (tcp4_pound_100, tcp4_echo_server)
105 
106  BENCHMARK_ENTRY (tcp4_pound_1000)
107  BENCHMARK_HELPER (tcp4_pound_1000, tcp4_echo_server)
108 
109  BENCHMARK_ENTRY (pipe_pump100_client)
110  BENCHMARK_HELPER (pipe_pump100_client, pipe_pump_server)
111 
112  BENCHMARK_ENTRY (pipe_pump1_client)
113  BENCHMARK_HELPER (pipe_pump1_client, pipe_pump_server)
114 
115  BENCHMARK_ENTRY (pipe_pound_100)
116  BENCHMARK_HELPER (pipe_pound_100, pipe_echo_server)
117 
118  BENCHMARK_ENTRY (pipe_pound_1000)
119  BENCHMARK_HELPER (pipe_pound_1000, pipe_echo_server)
120 
121  BENCHMARK_ENTRY (tcp_multi_accept2)
122  BENCHMARK_ENTRY (tcp_multi_accept4)
123  BENCHMARK_ENTRY (tcp_multi_accept8)
124 
125  BENCHMARK_ENTRY (udp_pummel_1v1)
126  BENCHMARK_ENTRY (udp_pummel_1v10)
127  BENCHMARK_ENTRY (udp_pummel_1v100)
128  BENCHMARK_ENTRY (udp_pummel_1v1000)
129  BENCHMARK_ENTRY (udp_pummel_10v10)
130  BENCHMARK_ENTRY (udp_pummel_10v100)
131  BENCHMARK_ENTRY (udp_pummel_10v1000)
132  BENCHMARK_ENTRY (udp_pummel_100v100)
133  BENCHMARK_ENTRY (udp_pummel_100v1000)
134  BENCHMARK_ENTRY (udp_pummel_1000v1000)
135 
136  BENCHMARK_ENTRY (udp_timed_pummel_1v1)
137  BENCHMARK_ENTRY (udp_timed_pummel_1v10)
138  BENCHMARK_ENTRY (udp_timed_pummel_1v100)
139  BENCHMARK_ENTRY (udp_timed_pummel_1v1000)
140  BENCHMARK_ENTRY (udp_timed_pummel_10v10)
141  BENCHMARK_ENTRY (udp_timed_pummel_10v100)
142  BENCHMARK_ENTRY (udp_timed_pummel_10v1000)
143  BENCHMARK_ENTRY (udp_timed_pummel_100v100)
144  BENCHMARK_ENTRY (udp_timed_pummel_100v1000)
145  BENCHMARK_ENTRY (udp_timed_pummel_1000v1000)
146 
147  BENCHMARK_ENTRY (getaddrinfo)
148 
149  BENCHMARK_ENTRY (fs_stat)
150 
151  BENCHMARK_ENTRY (async1)
152  BENCHMARK_ENTRY (async2)
153  BENCHMARK_ENTRY (async4)
154  BENCHMARK_ENTRY (async8)
155  BENCHMARK_ENTRY (async_pummel_1)
156  BENCHMARK_ENTRY (async_pummel_2)
157  BENCHMARK_ENTRY (async_pummel_4)
158  BENCHMARK_ENTRY (async_pummel_8)
159 
161  BENCHMARK_ENTRY (thread_create)
162  BENCHMARK_ENTRY (million_async)
163  BENCHMARK_ENTRY (million_timers)
BENCHMARK_ENTRY
#define BENCHMARK_ENTRY(name)
Definition: runner.h:75
dns_server
Definition: dns_server.py:1
spawn
static void spawn(void)
Definition: benchmark-spawn.c:103
ping_udp
static int ping_udp(unsigned pingers)
Definition: benchmark-ping-udp.c:135
TASK_LIST_END
#define TASK_LIST_END
Definition: runner.h:59
BENCHMARK_HELPER
#define BENCHMARK_HELPER
Definition: runner.h:85
BENCHMARK_DECLARE
#define BENCHMARK_DECLARE(name)
Definition: runner.h:72
HELPER_DECLARE
#define HELPER_DECLARE(name)
Definition: runner.h:78
TASK_LIST_START
#define TASK_LIST_START
Definition: runner.h:56


grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:58:36