From 2610062f9afe3f94629d212aa477ddaf8794c6b5 Mon Sep 17 00:00:00 2001 From: Alexandr Date: Sun, 3 Nov 2024 18:05:21 +0200 Subject: [PATCH 1/3] chore: add missing comment for init progress bar function --- src/app.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app.rs b/src/app.rs index d5b8718..7c97149 100644 --- a/src/app.rs +++ b/src/app.rs @@ -147,6 +147,7 @@ impl DnsBenchApplication { self.multi_progress = Some(multi_progress); } + /// Initialize a progress bar. fn init_progress_bar(requests_count: u64) -> ProgressBar { let progress_bar = ProgressBar::new(requests_count); From f553b3c867749eb8448379b5b1b4011f109ecfc0 Mon Sep 17 00:00:00 2001 From: Alexandr Date: Sun, 3 Nov 2024 18:08:05 +0200 Subject: [PATCH 2/3] docs: Fix default requests count in features section of readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5877a7a..a70ef74 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ This repository provides DNS benchmarking command line tool written in Rust. It ### Features - Built-in list of public DNS servers. -- Requests count configuration. By default, 10 requests are made to each DNS server. +- Requests count configuration. By default, 25 requests are made to each DNS server. - Threads count configuration. By default, 8 threads are used. - Timeout configuration. By default, 3 seconds timeout is used. - Domain configuration. By default, google.com domain is used. From 174e9acacd38943cdde6f73f56149b598c6afd07 Mon Sep 17 00:00:00 2001 From: Alexandr Date: Sun, 3 Nov 2024 18:27:01 +0200 Subject: [PATCH 3/3] docs: add opt-in table of contents into readme --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5877a7a..de40ec8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# dns-bench +# dns-bench [![Crates.io][crates-badge]][crates-url] ![Rust version][rust-version] @@ -12,6 +12,23 @@ [actions-url]: https://github.com/qwerty541/dns-bench/actions [rust-version]: https://img.shields.io/badge/rust-1.74.1%2B-lightgrey.svg?logo=rust +
+Table of contents + +- [Description](#description) + - [Example](#example) + - [Features](#features) + - [List of built-in DNS servers](#list-of-built-in-dns-servers) +- [Installation](#installation) + - [Which method to choose?](#which-method-to-choose) + - [From crates.io](#from-cratesio) + - [From git repository](#from-git-repository) + - [From Docker Hub](#from-docker-hub) +- [Options](#options) +- [License](#license) +- [Contribution](#contribution) +
+ ## Description This repository provides DNS benchmarking command line tool written in Rust. It iterates through built-in list of public DNS servers, measures their response time and print table with sorted results in console. It can be used to find the fastest DNS in your location for better internet browsing experience. An example of console output, list of features and list of built-in DNS servers can be found below.