Skip to content

Instantly share code, notes, and snippets.

@pawl

pawl/raspberry_pi_3b.txt

Last active Dec 6, 2020
Embed
What would you like to do?
pihole performance - raspberry pi 4b vs3b vs zero w
$ go run dnstrace.go -c 10 -s 192.168.1.94 -n 100 www.googletagservices.com
Benchmarking 192.168.1.94:53 via udp with 10 conncurrent requests
Total requests: 1000 of 1000 (100.0%)
DNS success codes: 1000
DNS response codes
NOERROR: 1000
Time taken for tests: 358.77562ms
Questions per second: 2787.3
DNS timings, 1000 datapoints
min: 1.048576ms
mean: 3.522428ms
[+/-sd]: 1.280984ms
max: 13.631487ms
DNS distribution, 1000 datapoints
LATENCY | | COUNT
--------------+---------------------------------------------+--------
1.179647ms | | 1
1.441791ms | ▄▄ | 10
1.703935ms | ▄▄▄ | 12
1.966079ms | ▄▄ | 10
2.228223ms | ▄▄▄▄▄▄ | 28
2.490367ms | ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | 94
2.752511ms | ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | 186
3.014655ms | ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | 98
3.276799ms | ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | 115
3.538943ms | ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | 86
3.801087ms | ▄▄▄▄▄▄▄▄▄▄▄▄ | 53
4.063231ms | ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | 99
4.325375ms | ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | 77
4.587519ms | ▄▄▄▄▄▄▄▄▄ | 40
4.849663ms | ▄▄▄▄▄▄▄ | 30
5.111807ms | ▄▄▄ | 13
5.373951ms | ▄▄▄ | 11
5.636095ms | ▄▄▄ | 12
5.898239ms | ▄ | 6
6.160383ms | | 2
6.422527ms | | 0
6.684671ms | | 0
6.946815ms | | 0
7.208959ms | | 2
7.471103ms | ▄ | 5
7.733247ms | | 0
7.995391ms | | 0
8.257535ms | | 0
8.650751ms | | 0
9.175039ms | | 0
9.699327ms | | 0
10.223615ms | | 0
10.747903ms | | 0
11.272191ms | ▄ | 3
11.796479ms | | 0
12.320767ms | ▄ | 4
12.845055ms | | 0
13.369343ms | ▄ | 3
$ go run dnstrace.go -c 10 -s 192.168.1.67 -n 100 www.googletagservices.com
Benchmarking 192.168.1.67:53 via udp with 10 conncurrent requests
Total requests: 1000 of 1000 (100.0%)
DNS success codes: 1000
DNS response codes
NOERROR: 1000
Time taken for tests: 314.011329ms
Questions per second: 3184.6
DNS timings, 1000 datapoints
min: 1.048576ms
mean: 3.048734ms
[+/-sd]: 879.066µs
max: 6.815743ms
DNS distribution, 1000 datapoints
LATENCY | | COUNT
-------------+---------------------------------------------+--------
1.179647ms | ▄ | 5
1.441791ms | ▄▄▄▄▄▄▄ | 29
1.703935ms | ▄▄▄▄▄ | 22
1.966079ms | ▄▄▄▄▄ | 22
2.228223ms | ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | 180
2.490367ms | ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | 70
2.752511ms | ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | 160
3.014655ms | ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | 122
3.276799ms | ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | 94
3.538943ms | ▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | 58
3.801087ms | ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | 72
4.063231ms | ▄▄▄▄▄▄▄▄▄▄▄▄ | 51
4.325375ms | ▄▄▄▄▄▄▄▄▄▄▄▄ | 51
4.587519ms | ▄▄▄▄ | 16
4.849663ms | ▄▄▄▄▄ | 19
5.111807ms | ▄▄▄ | 13
5.373951ms | ▄▄ | 7
5.636095ms | ▄▄ | 7
5.898239ms | | 0
6.160383ms | | 1
6.422527ms | | 0
6.684671ms | | 1
$ go run dnstrace.go -c 10 -s 192.168.1.30 -n 100 www.googletagservices.com
Benchmarking 192.168.1.30:53 via udp with 10 conncurrent requests
Total requests: 1000 of 1000 (100.0%)
Connection errors: 0
Read/Write errors: 7
DNS success codes: 993
DNS response codes
NOERROR: 993
Time taken for tests: 6.296787502s
Questions per second: 158.8
DNS timings, 993 datapoints
min: 2.62144ms
mean: 16.528007ms
[+/-sd]: 33.662023ms
max: 159.383551ms
DNS distribution, 993 datapoints
LATENCY | | COUNT
---------------+---------------------------------------------+--------
2.752511ms | | 1
3.014655ms | | 1
3.276799ms | ▄ | 2
3.538943ms | ▄ | 3
3.801087ms | ▄▄▄▄▄▄▄▄▄▄▄▄ | 28
4.063231ms | ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | 102
4.325375ms | ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | 66
4.587519ms | ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | 65
4.849663ms | ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | 84
5.111807ms | ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | 69
5.373951ms | ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | 39
5.636095ms | ▄▄▄▄▄▄▄▄▄▄▄▄ | 29
5.898239ms | ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | 39
6.160383ms | ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | 38
6.422527ms | ▄▄▄▄▄▄▄▄▄ | 21
6.684671ms | ▄▄▄▄▄▄▄▄▄▄▄ | 27
6.946815ms | ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | 49
7.208959ms | ▄▄▄▄▄▄▄▄▄▄▄▄ | 29
7.471103ms | ▄▄▄▄▄▄▄▄ | 18
7.733247ms | ▄▄▄ | 8
7.995391ms | ▄▄▄▄▄ | 13
8.257535ms | ▄▄▄▄ | 9
8.650751ms | ▄▄▄▄▄▄▄ | 17
9.175039ms | ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | 35
9.699327ms | ▄▄▄▄▄▄▄▄▄ | 21
10.223615ms | ▄▄▄▄▄▄▄▄▄▄▄▄ | 29
10.747903ms | ▄▄▄▄▄ | 11
11.272191ms | ▄▄▄▄ | 10
11.796479ms | ▄ | 3
12.320767ms | ▄ | 2
12.845055ms | | 1
13.369343ms | ▄ | 2
13.893631ms | | 0
14.417919ms | ▄ | 2
14.942207ms | | 0
15.466495ms | | 0
15.990783ms | | 0
16.515071ms | | 1
17.301503ms | ▄▄▄ | 8
18.350079ms | ▄▄▄▄▄ | 12
19.398655ms | ▄ | 2
20.447231ms | ▄ | 2
21.495807ms | | 1
22.544383ms | | 0
23.592959ms | | 0
24.641535ms | | 0
25.690111ms | | 0
26.738687ms | | 0
27.787263ms | | 0
28.835839ms | | 0
29.884415ms | | 0
30.932991ms | | 0
31.981567ms | | 0
33.030143ms | | 0
34.603007ms | | 0
36.700159ms | | 0
38.797311ms | | 0
40.894463ms | ▄ | 2
42.991615ms | ▄ | 3
45.088767ms | ▄▄▄ | 6
47.185919ms | ▄ | 2
49.283071ms | ▄ | 3
51.380223ms | | 0
53.477375ms | | 1
55.574527ms | | 1
57.671679ms | | 1
59.768831ms | | 1
61.865983ms | | 0
63.963135ms | | 0
66.060287ms | | 1
69.206015ms | ▄ | 2
73.400319ms | ▄ | 3
77.594623ms | | 0
81.788927ms | | 0
85.983231ms | | 0
90.177535ms | | 0
94.371839ms | | 1
98.566143ms | ▄ | 2
102.760447ms | ▄ | 2
106.954751ms | | 0
111.149055ms | | 0
115.343359ms | | 0
119.537663ms | | 0
123.731967ms | | 0
127.926271ms | ▄▄ | 4
132.120575ms | ▄▄▄▄▄▄▄▄▄▄▄▄ | 29
138.412031ms | ▄▄▄ | 7
146.800639ms | ▄▄▄▄▄ | 13
155.189247ms | ▄▄▄▄ | 1
testing method: https://dev.to/tonymet/benchmarking-pihole-pi-zero-vs-pi-3b-1fb8
raspberry pi zero w - mean: 16.528007ms (with errors)
raspberry pi 3b - mean: 3.522428ms (no errors)
raspberry pi 4b - mean: 3.048734ms (no errors)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment