Skip to content

Commit

Permalink
refactor: use valid filename extension instead of .example
Browse files Browse the repository at this point in the history
Using `.example` as filename extension confuse line-of-code count and
code-editor mode.
  • Loading branch information
azzamsa committed Apr 15, 2021
1 parent 09082bc commit 1d5a154
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions docs/benchmark.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,27 +92,27 @@ Benchmark #1: digs example.net A

## Summary

Using `digs.toml.1` as input:
Using `digs.1.toml` as input:

| Tool | Command | Time (mean) |
| ---- | ------- | ----------- |
| digs.rs 🦀 | `digs example.net ` | **304.7ms** |
| digs.py 🐍 | `digs example.net ` | **507.2ms** |


Using `digs.toml.2` as input:
Using `digs.2.toml` as input:

``` bash
> # digs.rs
❯ hyperfine --warmup 3 --max-runs 10 'digs example.net A -f digs.toml.2'
Benchmark #1: digs example.net A -f digs.toml.2
❯ hyperfine --warmup 3 --max-runs 10 'digs example.net A -f digs.2.toml'
Benchmark #1: digs example.net A -f digs.2.toml
Time (mean ± σ): 1.321 s ± 0.032 s [User: 6.4 ms, System: 7.7 ms]
Range (min … max): 1.259 s … 1.350 s 10 runs


> # digs.py
❯ hyperfine --warmup 3 --max-runs 10 'digs example.net A -f digs.yaml.2'
Benchmark #1: digs example.net A -f digs.yaml.2
❯ hyperfine --warmup 3 --max-runs 10 'digs example.net A -f digs.2.yaml'
Benchmark #1: digs example.net A -f digs.2.yaml
Time (mean ± σ): 1.548 s ± 0.215 s [User: 158.3 ms, System: 19.6 ms]
Range (min … max): 1.356 s … 1.960 s 10 runs
```
Expand Down
2 changes: 1 addition & 1 deletion docs/dev/digs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ digs --help
c
digs example.net A
c
digs example.net A -f digs.toml.example
digs example.net A -f digs.example.toml

File renamed without changes.

0 comments on commit 1d5a154

Please sign in to comment.