aboutgitcodebugslistschat
path: root/test/perf/pasta_udp
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2024-08-14 19:25:38 +0200
committerStefano Brivio <sbrivio@redhat.com>2024-08-15 09:13:15 +0200
commit946206437a215ca5ce5020ff1e745e237f27f3e7 (patch)
tree30bbf8445716ab3a844bbe544abc2fb60c70b3ac /test/perf/pasta_udp
parent61c0b0d0f199589c72bd53e267d797a8e4bf1478 (diff)
downloadpasst-946206437a215ca5ce5020ff1e745e237f27f3e7.tar
passt-946206437a215ca5ce5020ff1e745e237f27f3e7.tar.gz
passt-946206437a215ca5ce5020ff1e745e237f27f3e7.tar.bz2
passt-946206437a215ca5ce5020ff1e745e237f27f3e7.tar.lz
passt-946206437a215ca5ce5020ff1e745e237f27f3e7.tar.xz
passt-946206437a215ca5ce5020ff1e745e237f27f3e7.tar.zst
passt-946206437a215ca5ce5020ff1e745e237f27f3e7.zip
test: Speed up by cutting on eye candy and performance test duration
We have a number of delays when we switch to new layouts that were added to make the tests visually easier to follow, together with blinking status bars. Shorten the delays and avoid blinking the status bar if $FAST is set to 1 (no demo mode). Shorten delays in busy loops to 10ms, instead of 100ms, and skip the one-second fixed delay when we wait for the status of a command. Cut the duration of throughput and latency tests to one second, down from ten. Somewhat surprisingly, the results we get are rather consistent, and not significantly different from what we'd get with 10 seconds. This, together with Podman's commit 20f3e8909e3a ("test/system: pasta_test_do add explicit port check"), cuts the time needed on my setup for full test run from approximately 37 minutes to...: $ time ./run [exited] PASS: 165, FAIL: 0 Log at /home/sbrivio/passt/test/test_logs/test.log real 15m34.253s user 0m0.011s sys 0m0.011s Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Tested-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'test/perf/pasta_udp')
-rw-r--r--test/perf/pasta_udp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/perf/pasta_udp b/test/perf/pasta_udp
index 6acbfd3..9fed62e 100644
--- a/test/perf/pasta_udp
+++ b/test/perf/pasta_udp
@@ -21,7 +21,7 @@ hout FREQ_CPUFREQ (echo "scale=1"; printf '( %i + 10^5 / 2 ) / 10^6\n' $(cat /sy
hout FREQ [ -n "__FREQ_CPUFREQ__" ] && echo __FREQ_CPUFREQ__ || echo __FREQ_PROCFS__
set THREADS 1
-set TIME 10
+set TIME 1
set OPTS -u -P __THREADS__
info Throughput in Gbps, latency in µs, one thread at __FREQ__ GHz