scroll

scrollbackbuffer program for st
git clone git://git.suckless.org/scroll
Log | Files | Refs | README

commit 2dce762b8ecaf52fdcbc58fa203c8f83835216ca
parent c4b7051d0af4482b594ce065fe77e9f9c0935893
Author: Jan Klemkow <j.klemkow@wemelug.de>
Date:   Mon, 27 Apr 2020 00:00:27 +0200

add tool for performance impact mesurement

Diffstat:
Aperf.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