I’ve just tried 1.9.3 on Linux (Debian Stretch, X86_64) and found that programs experience a startup delay of about 20 seconds. This is for both test and normal operation.
hbarta@yggdrasil:~/Documents/go/src/oak/HankB/filededup$ time go test -v
=== RUN TestMin
--- PASS: TestMin (0.00s)
=== RUN TestCompareByteByByte
--- PASS: TestCompareByteByByte (0.01s)
=== RUN TestLinkFile
--- PASS: TestLinkFile (0.00s)
=== RUN Example_getHash
--- PASS: Example_getHash (0.00s)
=== RUN Example_insertFile
--- PASS: Example_insertFile (0.03s)
=== RUN Example_findMatch
--- PASS: Example_findMatch (0.08s)
PASS
ok oak/HankB/filededup 0.119s
real 0m23.088s
user 0m22.504s
sys 0m0.448s
hbarta@yggdrasil:~/Documents/go/src/oak/HankB/filededup$
With 1.9.2 the result is
hbarta@yggdrasil:~/Documents/go/src/oak/HankB/filededup$ time go test -v
=== RUN TestMin
--- PASS: TestMin (0.00s)
=== RUN TestCompareByteByByte
--- PASS: TestCompareByteByByte (0.01s)
=== RUN TestLinkFile
--- PASS: TestLinkFile (0.00s)
=== RUN Example_getHash
--- PASS: Example_getHash (0.00s)
=== RUN Example_insertFile
--- PASS: Example_insertFile (0.03s)
=== RUN Example_findMatch
--- PASS: Example_findMatch (0.07s)
PASS
ok oak/HankB/filededup 0.111s
real 0m0.440s
user 0m0.352s
sys 0m0.040s
hbarta@yggdrasil:~/Documents/go/src/oak/HankB/filededup$
During this period top
reports cc1
running at 100% on one core.
Is anyone else seeing this?
At present this project is hosted on a private git server but I could put it up on Github if that would be helpful.
Thanks!