Introduction
Introduction Statistics Contact Development Disclaimer Help
add tool for performance impact mesurement - scroll - scrollbackbuffer program …
git clone git://git.suckless.org/scroll
Log
Files
Refs
README
LICENSE
---
commit 2dce762b8ecaf52fdcbc58fa203c8f83835216ca
parent c4b7051d0af4482b594ce065fe77e9f9c0935893
Author: Jan Klemkow <[email protected]>
Date: Mon, 27 Apr 2020 00:00:27 +0200
add tool for performance impact mesurement
Diffstat:
A perf.sh | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/perf.sh b/perf.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+set -eu
+
+num=1000000
+
+rm -f perf_*.log
+
+for i in `jot 10`; do
+ /usr/bin/time st -e jot $num 2>>perf_0.log
+done
+
+for i in `jot 10`; do
+ /usr/bin/time st -e ./ptty jot $num 2>>perf_1.log
+done
+
+for i in `jot 10`; do
+ /usr/bin/time st -e ./ptty ./ptty jot $num 2>>perf_2.log
+done
+
+for i in `jot 10`; do
+ /usr/bin/time st -e ./ptty ./ptty ./ptty jot $num 2>>perf_3.log
+done
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.