Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into docs_dh_add_optin_t…
Browse files Browse the repository at this point in the history
…oc_into_overview
  • Loading branch information
qwerty541 committed Nov 5, 2024
2 parents 8b29a86 + 8b39620 commit 04474eb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# dns-bench
# dns-bench <!-- omit in toc -->

[![Crates.io][crates-badge]][crates-url]
![Rust version][rust-version]
Expand All @@ -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

<details>
<summary>Table of contents</summary>

- [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)
</details>

## 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.
Expand All @@ -23,7 +40,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.
Expand Down
1 change: 1 addition & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 04474eb

Please sign in to comment.