commit 94a3ed47aca0c1b9deac4444312af507bfd8c114
parent f33ccfb912ee1c8138178514eb3feff2b1c3a032
Author: mtmn <miro@haravara.org>
Date: Mon, 15 Jun 2026 11:30:18 +0200
speediness: increase default_upload_mb to 100
Diffstat:
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/speediness/README.md b/speediness/README.md
@@ -1,6 +1,6 @@
# speediness
-A network speed test. Downloads 100 MB from OVH and uploads 50 MB to Cloudflare, printing live throughput and a final summary for each.
+A network speed test. Downloads 100 MB from OVH and uploads 100 MB to Cloudflare, printing live throughput and a final summary for each.
## Building
@@ -17,7 +17,7 @@ speediness
```
Pass one or more options to run the test. Each unspecified option falls back to
-its default, so the original behaviour is `--upload-mb 50` with the default URLs:
+its default, so the original behaviour is `--upload-mb 100` with the default URLs:
```sh
speediness --download-url <url> --upload-url <url> --upload-mb <n>
@@ -26,8 +26,8 @@ speediness --download-url <url> --upload-url <url> --upload-mb <n>
| Option | Description | Default |
| ---------------- | --------------------- | ---------------------------------------- |
| `--download-url` | URL to download from | `https://proof.ovh.net/files/100Mb.dat` |
-| `--upload-url` | URL to upload to | `https://speed.cloudflare.com/__upload` |
-| `--upload-mb` | Megabytes to upload | `50` |
+| `--upload-url` | URL to upload to | `https://speed.cloudflare.com/__up` |
+| `--upload-mb` | Megabytes to upload | `100` |
| `--both` | Run both tests | |
| `--download-only` | Run the download test only | |
| `--upload-only` | Run the upload test only | |
@@ -38,6 +38,7 @@ Output example:
```
104.9 MB 4.18 MB/s 33.4 Mbps
104.9 MB in 23.92s => 4.18 MB/s (33.4 Mbps)
- 52.4 MB 2.22 MB/s 17.7 Mbps
-52.4 MB in 22.57s => 2.22 MB/s (17.7 Mbps)
+ 104.9 MB 2.88 MB/s 23.1 Mbps
+104.9 MB in 34.67s => 2.88 MB/s (23.1 Mbps)
+
```
diff --git a/speediness/src/main.zig b/speediness/src/main.zig
@@ -1,8 +1,8 @@
const std = @import("std");
const default_download_url = "https://proof.ovh.net/files/100Mb.dat";
-const default_upload_url = "https://speed.cloudflare.com/__upload";
-const default_upload_mb: usize = 50;
+const default_upload_url = "https://speed.cloudflare.com/__up";
+const default_upload_mb: usize = 100;
const Config = struct {
download_url: []const u8 = default_download_url,