mirror of
https://github.com/mikkelam/fast-cli.git
synced 2025-12-16 20:04:05 +00:00
switch page_allocator -> smp_allocator
This commit is contained in:
parent
9aaec67e40
commit
b3db5ee671
2 changed files with 4 additions and 4 deletions
|
|
@ -69,7 +69,7 @@ fn run(ctx: zli.CommandContext) !void {
|
|||
use_https, check_upload, json_output, max_duration,
|
||||
});
|
||||
|
||||
var fast = Fast.init(std.heap.page_allocator, use_https);
|
||||
var fast = Fast.init(std.heap.smp_allocator, use_https);
|
||||
defer fast.deinit();
|
||||
|
||||
const urls = fast.get_urls(5) catch |err| {
|
||||
|
|
@ -91,7 +91,7 @@ fn run(ctx: zli.CommandContext) !void {
|
|||
}
|
||||
|
||||
// Measure latency first
|
||||
var latency_tester = HttpLatencyTester.init(std.heap.page_allocator);
|
||||
var latency_tester = HttpLatencyTester.init(std.heap.smp_allocator);
|
||||
defer latency_tester.deinit();
|
||||
|
||||
const latency_ms = if (!json_output) blk: {
|
||||
|
|
@ -110,7 +110,7 @@ fn run(ctx: zli.CommandContext) !void {
|
|||
}
|
||||
|
||||
// Initialize speed tester
|
||||
var speed_tester = HTTPSpeedTester.init(std.heap.page_allocator);
|
||||
var speed_tester = HTTPSpeedTester.init(std.heap.smp_allocator);
|
||||
defer speed_tester.deinit();
|
||||
|
||||
// Use Fast.com-style stability detection by default
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ pub const std_options: std.Options = .{
|
|||
};
|
||||
|
||||
pub fn main() !void {
|
||||
const allocator = std.heap.page_allocator;
|
||||
const allocator = std.heap.smp_allocator;
|
||||
var root = try cli.build(allocator);
|
||||
defer root.deinit();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue