Questions tagged [benchmark]
133 questions
63
votes
7 answers
How can I benchmark my HDD?
I've seen commands to benchmark one's HDD such as this using dd:
$ time sh -c "dd if=/dev/zero of=ddfile bs=8k count=250000 && sync"
Are there better methods to do so than this?
slm
- 363,520
- 117
- 767
- 871
50
votes
6 answers
Benchmark ssd on linux: How to measure the same things as crystaldiskmark does in windows
I want to benchmark a ssd (possibly with encrypted filesystems) and compare it to benchmarks done by crystaldiskmark on windows.
So how can I measure approximately the same things as crystaldiskmark does?
For the first row (Seq) I think I could do…
student
- 17,875
- 31
- 103
- 169
32
votes
8 answers
How to test DNS speed?
I am using google open DNS.
How can I measure the speed of a DNS server?
user4951
- 10,329
- 28
- 71
- 92
29
votes
6 answers
How to average time commands?
I am timeing some of my commands. Now to average the measures, I'd like to run and time my commands a specified number of times, and get the results with a calculated mean and standard deviation. The result would be like:
avgtime -n 100…
Didier Trosset
- 1,251
- 1
- 11
- 13
24
votes
1 answer
Write-benchmark of gnome-disks
Does the write-benchmark of gnome-disks write back the original data after the test? It is destructive?
The Benchmark Settings window only states this: Please back up important data before using the write benchmark.
Furthermore, how does it handle…
palacsint
- 353
- 3
- 8
23
votes
3 answers
Why is coreutils sort slower than Python?
I wrote the following script to test the speed of Python's sort functionality:
from sys import stdin, stdout
lines = list(stdin)
lines.sort()
stdout.writelines(lines)
I then compared this to the coreutils sort command on a file containing 10…
augurar
- 621
- 5
- 12
19
votes
2 answers
How can I observe memory bandwidth?
I have an embedded Linux ARM system that is showing significantly less throughput than expected on both Ethernet and USB. I suspect the memory may be contributing. Is there a way to observe the memory bandwidth that is consumed while running a…
Shawn J. Goff
- 45,338
- 25
- 134
- 145
18
votes
3 answers
Simulate an unkillable process in D state
For catastrophe testing scenarios on out server environment we're looking for an easy way to make a process stuck in D (uninterruptible sleep) state.
Any easy ways? An example C sample code would be a plus :)
Edit - the first answer is…
er453r
- 867
- 2
- 8
- 22
12
votes
5 answers
Universal non-bash `time` benchmark alternative?
For comparing run times of scripts between different shells, some SE answers suggest using bash's built-in time command, like so:
time bash -c 'foo.sh'
time dash -c 'foo.sh'
...etc, for every shell to test. Such benchmarks fail to eliminate the…
agc
- 7,045
- 3
- 23
- 53
9
votes
2 answers
Telling Linux kernel *not* to use certain CPUs
I'm trying to run some benchmarks on a multicore machine and I'd like to tell the Linux kernel to simply avoid certain cores unless explicitly told to use them.
The idea is that I could set aside a handful of cores (the machine has 6 physical…
Lajos Nagy
- 263
- 1
- 2
- 4
8
votes
4 answers
Find the lightest desktop environment
A high-votes answer here for the question "What's the lightest desktop" which actually tried to quantitatively assess memory use relies on a Wikipedia page which quotes 2011 data.
The newest article I could find dates back to November 2018 (thanks…
K7AAY
- 3,696
- 4
- 22
- 39
8
votes
1 answer
running iperf over ssh
I'm trying to benchmark the network connection between 2 ubuntu servers on which I don't have root privileges.
I did manage to download and start iperf-2.0.9 on both boxes.
My problem is I can't open ports (through the firewall).
So the client…
Alex Tartan
- 1,429
- 1
- 13
- 21
7
votes
1 answer
tee is faster than no tee
I have this simple bash script:
#!/bin/bash
for i in {1..1000000}
do
echo "hello ${i}"
done
That prints a message a million times.
I try to compare the performance of dumping all the output into a single file,
vs. using tee to split the…
areller
- 171
- 1
7
votes
2 answers
How can other processes affect measurements made with `time`?
If I time a process using the time command, I get output for 'real', 'user', and 'sys'.
My understanding from this discussion is that 'real' is wall time, whereas 'user' and 'sys' are process time.
Does this imply that 'user' and 'sys' will be…
Nathan Long
- 1,613
- 1
- 13
- 27
6
votes
2 answers
How to benchmark RAM memory with a Linux Distro?
I' ve just bought new RAM and I'd like to benchmark and compare with my old. How can I do that?
Mitro
- 1,091
- 6
- 22
- 37