Commit 7787966
committed
dbsp_nexmark: Fix event rate.
Nexmark query q15 ran very slowly as the number of events increased past
about 10M, causing runs of 100M to take multiple minutes when most of the
other queries ran much faster. We traced this back to the
`first_event_rate` option, which controlled the number of events emitted
for each simulated second, with a default value of 10,000,000. Because
q15 aggregates by day, this meant that all 100M generated events would be
in the same aggregation group.
We looked at what the Flink generator does. It also has a
`first_event_rate` setting, which defaults to 10,000. If we interpret
this as a rate per second (as Feldera interpreted this setting), then
this would still put all of the events in one day because 100,000,000 /
10,000 = 10,000, which is less than the 86,400 seconds in one day.
However, despite the name, the Flink setting is the interval between
events in microseconds, which means that its default was actually 100
events per second, or 8.64 million events/day, which is significantly less
than the 100 million events in the simulation.
This commit changes the Feldera Nexmark generator to default to the same
inter-event interval. I thought that it was too confusing to retain this
setting under the same name, so I changed its name to `event_interval`,
denominated in milliseconds.
This speeds up q15 for me from about 180s to about 36s, a 5x speedup.
Signed-off-by: Ben Pfaff <blp@feldera.com>1 parent f2597bd commit 7787966
File tree
6 files changed
+13
-37
lines changed- benchmark
- crates/nexmark/src
- generator
- scripts
6 files changed
+13
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
465 | | - | |
466 | 465 | | |
467 | 466 | | |
468 | 467 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
96 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | 38 | | |
44 | 39 | | |
45 | 40 | | |
| |||
51 | 46 | | |
52 | 47 | | |
53 | 48 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | 49 | | |
65 | 50 | | |
66 | 51 | | |
| |||
84 | 69 | | |
85 | 70 | | |
86 | 71 | | |
87 | | - | |
88 | 72 | | |
89 | 73 | | |
90 | 74 | | |
| |||
115 | 99 | | |
116 | 100 | | |
117 | 101 | | |
118 | | - | |
| 102 | + | |
119 | 103 | | |
120 | 104 | | |
121 | 105 | | |
| |||
264 | 248 | | |
265 | 249 | | |
266 | 250 | | |
267 | | - | |
268 | | - | |
269 | | - | |
| 251 | + | |
270 | 252 | | |
271 | | - | |
272 | | - | |
273 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
274 | 256 | | |
275 | 257 | | |
276 | 258 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
| 298 | + | |
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
301 | 300 | | |
302 | 301 | | |
303 | 302 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | | - | |
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
34 | 32 | | |
35 | | - | |
| 33 | + | |
36 | 34 | | |
37 | 35 | | |
38 | 36 | | |
| |||
90 | 88 | | |
91 | 89 | | |
92 | 90 | | |
93 | | - | |
94 | 91 | | |
95 | 92 | | |
96 | 93 | | |
97 | | - | |
98 | 94 | | |
99 | 95 | | |
100 | | - | |
| 96 | + | |
101 | 97 | | |
102 | | - | |
| 98 | + | |
103 | 99 | | |
0 commit comments