{"thread":{"id":"64923","subject":"Document that perf tests require GNU time","startedAt":"2026-02-05T07:45:19Z","lastAt":"2026-02-05T07:45:19Z","messageCount":1,"participants":["Seth McDonald"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"535211","messageId":"WXxKFs_utzKHnZYkPTmI_Ewz1HmpkwsthhFwToulAYj6ZHlHizXkGELxquKLhQsJUx9aMxvIUhZEjknWNNGEH0zfDlRbD2FOy9Jz4JZNb8I=@pm.me","threadId":"64923","inReplyTo":null,"subject":"Document that perf tests require GNU time","fromName":"Seth McDonald","fromEmail":"sethmcmail@pm.me","sentAt":"2026-02-05T07:45:14Z","receivedAt":"2026-02-05T07:45:19Z","isPatch":false,"sender":{"key":"sethmcmail@pm.me","avatar":null},"body":"Hi all,\n\nFor context, this occurred on my Debian GNU/Linux 13 environment with\nGNU bash 5.2.37.\n\nI recently cloned the Git repo and began exploring it by first\nattempting to compile and run Git and its tests.  Following the INSTALL\nfile, I ran `make profile` which showed all normal tests passing (sans\nthe expected failures), but *every* perf test failing.\n\nI read any in-repo documentation I could find about the perf tests that\nseemed relevant, but couldn't find any possible causes for the failures.\nIt was only after reading and following the perf tests' shell code that\nI came across this in t/perf/perf-lib.sh (lines 206-208, master branch):\n\n\t$ sed -n '206,208p' t/perf/perf-lib.sh\n\t# Perf tests require GNU time\n\tcase \"$(uname -s)\" in Darwin) GTIME=\"${GTIME:-gtime}\";; esac\n\tGTIME=\"${GTIME:-/usr/bin/time}\"\n\nWhile I did have time(1), I didn't have the GNU implementation.  I\nconfirmed this was the issue by installing GNU time and again running\n`make profile-fast`, which now showed all perf tests running\nsuccessfully.\n\nSo to prevent anyone from having the same experience, I would recommend\nthat either\n- the perf tests' dependency on GNU time be more clearly documented.\n  Places that seem reasonable for this include INSTALL, t/README, and\n  t/perf/README (this file seems most apt IMO).  Or\n- in the case that GNU time isn't found, the perf tests output an error\n  message explicitly documenting this dependency.\n\n(I would include a patch with this, but I'm certainly not yet familiar\nenough with the Git repo to confidently do so.)\n\nTake care,\n\tSeth McDonald.\n\n-- \n\nOn-list:  2336 E8D2 FEB1 5300 692C  62A9 5839 6AD8 9243 D369\nOff-list: 82B9 620E 53D0 A1AE 2D69  6111 C267 B002 0A90 0289"}]}