jgit/org.eclipse.jgit
Matthias Sohn 99d351d0cb Measure stored timestamp resolution instead of time to touch file
Measure granularity of timestamps stored in the filesystem by setting
and then getting lastModified timestamp until the read value changed.
Increase increment exponentially to limit number of iterations starting
with 1 microsecond since Java's FileTime (up to Java 12) truncates
timestamps to 1 microsecond resolution. The chosen algorithm yields 2000
steps between 1 ms and 2.5 s.

Also measure clock resolution and add that for the total timestamp
resolution. This avoids systematic measurement errors introduced by
doing IO to touch a file.

Change-Id: I9b37138619422452373e298d9d8c7cb2c384db3f
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2019-07-19 14:45:55 +02:00
..
.settings Use Instant for smudge time in DirCache and DirCacheEntry 2019-07-18 03:36:18 +02:00
META-INF Prepare 5.1.9-SNAPSHOT builds 2019-06-05 15:23:56 +02:00
findBugs
resources/org/eclipse/jgit Use Instant instead of milliseconds for filesystem timestamp handling 2019-07-18 03:27:52 +02:00
src/org/eclipse/jgit Measure stored timestamp resolution instead of time to touch file 2019-07-19 14:45:55 +02:00
.classpath Change JGit minimum execution environment to JavaSE-1.8 2016-09-20 11:32:36 +02:00
.fbprefs
.gitignore
.project
BUILD Bazel: Support building with Java 9 2018-02-07 17:51:35 -05:00
about.html SHA-1: collision detection support 2017-02-28 16:38:43 -08:00
build.properties
plugin.properties
pom.xml Update Maven plugins and cleanup Maven warnings 2019-06-18 16:55:44 +02:00