diff options
author | 2021-11-27 19:02:49 -0800 | |
---|---|---|
committer | 2021-12-16 19:18:51 -0800 | |
commit | b5744e5da4a00d413aac3afe0c3aad5976e775a9 (patch) | |
tree | 4b2da90ba84d40723b3ef628921e16b6277e9061 /misctools | |
parent | 7bad5770a17d4967d0dac21990ccfffa4b1065f7 (diff) | |
download | bun-b5744e5da4a00d413aac3afe0c3aad5976e775a9.tar.gz bun-b5744e5da4a00d413aac3afe0c3aad5976e775a9.tar.zst bun-b5744e5da4a00d413aac3afe0c3aad5976e775a9.zip |
save and load manifest
Diffstat (limited to 'misctools')
-rw-r--r-- | misctools/http_bench.zig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/misctools/http_bench.zig b/misctools/http_bench.zig index ff937f6db..5d72770ef 100644 --- a/misctools/http_bench.zig +++ b/misctools/http_bench.zig @@ -197,6 +197,8 @@ pub fn main() anyerror!void { }; var groups = try default_allocator.alloc(Group, args.count); var i: usize = 0; + const Batch = @import("../src/thread_pool.zig").Batch; + var batch = Batch{}; while (i < args.count) : (i += 1) { groups[i] = Group{}; var response_body = &groups[i].response_body; @@ -219,8 +221,9 @@ pub fn main() anyerror!void { ), }; ctx.http.callback = HTTP.HTTPChannelContext.callback; - ctx.http.schedule(default_allocator); + ctx.http.schedule(default_allocator, &batch); } + NetworkThread.global.pool.schedule(batch); var read_count: usize = 0; var success_count: usize = 0; |