git/t/helper
Garima Singh a62f9d1ace test-path-utils: offer to run a protectNTFS/protectHFS benchmark
In preparation to flipping the default on `core.protectNTFS`, let's have
some way to measure the speed impact of this config setting reliably
(and for comparison, the `core.protectHFS` config setting).

For now, this is a manual performance benchmark:

	./t/helper/test-path-utils protect_ntfs_hfs [arguments...]

where the arguments are an optional number of file names to test with,
optionally followed by minimum and maximum length of the random file
names. The default values are one million, 3 and 20, respectively.

Just like `sqrti()` in `bisect.c`, we introduce a very simple function
to approximation the square root of a given value, in order to avoid
having to introduce the first user of `<math.h>` in Git's source code.

Note: this is _not_ implemented as a Unix shell script in t/perf/
because we really care about _very_ precise timings here, and Unix shell
scripts are simply unsuited for precise and consistent benchmarking.

Signed-off-by: Garima Singh <garima.singh@microsoft.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2019-12-05 15:36:40 +01:00
..
.gitignore Merge branch 'jh/add-index-entry-optim' 2017-04-26 15:39:07 +09:00
test-chmtime.c
test-config.c config: don't include config.h by default 2017-06-15 12:56:22 -07:00
test-ctype.c
test-date.c timestamp_t: a new data type for timestamps 2017-04-27 13:07:39 +09:00
test-delta.c avoid "write_in_full(fd, buf, len) != len" pattern 2017-09-14 15:17:59 +09:00
test-dump-cache-tree.c Convert struct cache_tree to use struct object_id 2017-05-02 10:46:41 +09:00
test-dump-split-index.c
test-dump-untracked-cache.c use QSORT 2016-09-29 15:42:18 -07:00
test-fake-ssh.c
test-genrandom.c
test-hashmap.c hashmap.h: compare function has access to a data field 2017-06-30 12:49:28 -07:00
test-index-version.c
test-lazy-init-name-hash.c name-hash: add test-lazy-init-name-hash 2017-03-24 11:00:03 -07:00
test-line-buffer.c
test-match-trees.c tree: convert parse_tree_indirect to struct object_id 2017-05-08 15:12:58 +09:00
test-mergesort.c
test-mktemp.c
test-online-cpus.c test-online-cpus: helper to return cpu count 2017-04-12 23:17:19 -07:00
test-parse-options.c timestamp_t: a new data type for timestamps 2017-04-27 13:07:39 +09:00
test-path-utils.c test-path-utils: offer to run a protectNTFS/protectHFS benchmark 2019-12-05 15:36:40 +01:00
test-prio-queue.c
test-read-cache.c test-read-cache: setup git dir 2017-04-16 20:05:11 -07:00
test-ref-store.c ref_store: take a msg parameter when deleting references 2017-05-23 14:29:53 +09:00
test-regex.c
test-revision-walking.c
test-run-command.c
test-scrap-cache-tree.c hold_locked_index(): align error handling with hold_lockfile_for_update() 2016-12-07 11:31:59 -08:00
test-sha1-array.c Rename sha1_array to oid_array 2017-03-31 08:33:56 -07:00
test-sha1.c
test-sha1.sh
test-sigchain.c
test-strcmp-offset.c Spelling fixes 2017-06-27 10:35:49 -07:00
test-string-list.c test-stringlist: avoid buffer underrun when sorting nothing 2017-10-04 13:41:49 +09:00
test-submodule-config.c config: don't include config.h by default 2017-06-15 12:56:22 -07:00
test-subprocess.c
test-svn-fe.c
test-urlmatch-normalization.c
test-wildmatch.c wildmatch: remove unused wildopts parameter 2017-06-23 18:27:07 -07:00