nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 45 lines 1.5 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "multitime"; 10 version = "1.4"; 11 12 src = fetchFromGitHub { 13 owner = "ltratt"; 14 repo = "multitime"; 15 rev = "multitime-${version}"; 16 sha256 = "1p6m4gyy6dw7nxnpsk32qiijagmiq9vwch0fbc25qvmybwqp8qc0"; 17 }; 18 19 nativeBuildInputs = [ autoreconfHook ]; 20 21 meta = { 22 description = "Time command execution over multiple executions"; 23 24 longDescription = '' 25 Unix's `time` utility is a simple and often effective way of measuring 26 how long a command takes to run. Unfortunately, running a command once 27 can give misleading timings: the process may create a cache on its first 28 execution, running faster subsequently; other processes may cause the 29 command to be starved of CPU or IO time; etc. It is common to see people 30 run `time` several times and take whichever values they feel most 31 comfortable with. Inevitably, this causes problems. 32 33 `multitime` is, in essence, a simple extension to time which runs a 34 command multiple times and prints the timing means (with confidence 35 intervals), standard deviations, minimums, medians, and maximums having 36 done so. This can give a much better understanding of the command's 37 performance. 38 ''; 39 40 license = lib.licenses.mit; 41 homepage = "https://tratt.net/laurie/src/multitime/"; 42 platforms = lib.platforms.unix; 43 mainProgram = "multitime"; 44 }; 45}