I think I found an explanation of the problem! I also pasted the Etrecheck report below, but it does not show anything interesting.
I have several Mac computers with High Sierra, but only one of them, the MacBookPro is slow. I compared the tasks, services and threads among computers - this is quite a long and boring work. Some of the error messages show rather poor code, some examples here:
22 Jul 2018 at 16:04:24 com.apple.xpc.launchd[1]: Could not import service from caller: path = /System/Library/LaunchDaemons/com.apple.platform.ptmd.plist, caller = launchd.1, error = 138: Service cannot be loaded on this hardware
22 Jul 2018 at 16:04:24 com.apple.xpc.launchd[1]: com.apple.CoreRAID (lint): The HideUntilCheckIn property is an architectural performance issue. Please transition away from it.
22 Jul 2018 at 16:04:24 com.apple.xpc.launchd[1]: ThrottleInterval set to zero. You're not that important. Ignoring.
22 Jul 2018 at 16:04:24 com.apple.xpc.launchd[1]: The TimeOut key is no longer respected. It never did anything anyway.
22 Jul 2018 at 16:04:24 com.apple.xpc.launchd[1]: The HopefullyExitsLast key is no longer respected. Please remove it.
22 Jul 2018 at 16:04:24 com.apple.xpc.launchd[1]: Please switch away from OnDemand to KeepAlive.
Is this my Mac? "Never did anything anyway"??? "Cannot import services into hardware"???
Anyhow these problems have been present in all my computers alike, so this is not the reason for the slow response.
Finally I found the following: the OS writes a lot of log text into different files. The MacBook Pro computer from 2013 has a slower SSD and the files are encrypted. On the other computers I don't have encrypted files. The encryption and writing into a slow SSD is the delay I see when I type some command. This delay is not shown in the Activity Monitor since it is a low level OS function. To test this hypothesis, I removed the encryption of the disk (Security & Privacy / File Vault set to Off), and the computer is much more responsive now. There are still some extra percent of CPU power used somewhere, I will find this as well. But it can be that all the log writing and the poor coding makes the difference.
Clearly, here one needs to balance encryption of the hard disk against speed, but in my case I select speed since it is not acceptable that I type something and I see the result on the screen after 5 seconds.
All in all, according to my experience, using older versions of the OS or alternatively Ubuntu is a more effective solution. Apple must improve a lot to keep being competitive according to me.
Please let me know if one of you see something relevant in the EtreCheck or in the logs that could help. Thank's!
EtreCheck version: 4.3.6 (4D041)
Report generated: 2018-07-23 01:17:11
Download EtreCheck from https://etrecheck.com
Runtime: 3:40
Performance: Good
Problem: Computer is too slow
Major Issues: None
Minor Issues:
These issues do not need immediate attention but they may indicate future problems.
Unsigned files - There are unsigned software file installed. They appear to be legitimate but should be reviewed.
32-bit Apps - This machine has 32-bits apps that may have problems in the future.
Hardware Information:
MacBook Pro (Retina, 13-inch, Late 2013)
MacBook Pro Model: MacBookPro11,1
1 2,6 GHz Intel Core i5 (i5-4288U) CPU: 2-core
8 GB RAM - Not upgradeable
BANK 0/DIMM0 - 4 GB DDR3 1600 ok
BANK 1/DIMM0 - 4 GB DDR3 1600 ok
Battery: Health = Normal - Cycle count = 19
Video Information:
Intel Iris - VRAM: 1536 MB
Color LCD
Drives:
disk0 - APPLE SSD SM0512F 500.28 GB (Solid State - TRIM: Yes)
Internal PCI 5.0 GT/s x2 Serial ATA
disk0s1 - EFI (MS-DOS FAT32) [EFI] 210 MB
disk0s2 500.07 GB
disk1s1 - Macintosh HD (APFS) 500.07 GB (44.35 GB used)
disk1s2 - Preboot (APFS) [APFS Preboot] 500.07 GB (21 MB used)
disk1s3 - Recovery (APFS) [Recovery] 500.07 GB (519 MB used)
disk1s4 - VM (APFS) [APFS VM] 500.07 GB (1.07 GB used)
Mounted Volumes:
disk1s1 - Macintosh HD 500.07 GB (453.95 GB free)
APFS
Mount point: /
disk1s4 - VM [APFS VM] 500.07 GB (453.95 GB free)
APFS
Mount point: /private/var/vm
Network:
Interface en4: Thunderbolt Ethernet
Interface en5: Apple USB Ethernet Adapter
Interface en0: Wi-Fi
802.11 a/b/g/n/ac
One IPv4 address
Proxy Auto Discovery
Interface en3: Bluetooth PAN
Interface bridge0: Thunderbolt Bridge
iCloud Quota: 2.97 GB available
System Software:
macOS High Sierra 10.13.6 (17G65)
Time since boot: About 12 hours
System Load: 1.41 (1 min ago) 1.55 (5 min ago) 1.89 (15 min ago)
Security:
| System | Status |
|---|
| Gatekeeper | Mac App Store and identified developers |
| System Integrity Protection | Enabled |
Unsigned Files:
Launchd: /Library/LaunchDaemons/com.microsoft.office.licensing.helper.plist
Executable: /Library/PrivilegedHelperTools/com.microsoft.office.licensing.helper
Details: Exact match found in the whitelist - probably OK
32-bit Applications:
26 32-bit apps
System Launch Agents:
| [Not Loaded] | 9 Apple tasks |
| [Loaded] | 173 Apple tasks |
| [Running] | 111 Apple tasks |
| [Other] | One Apple task |
System Launch Daemons:
| [Not Loaded] | 37 Apple tasks |
| [Loaded] | 184 Apple tasks |
| [Running] | 115 Apple tasks |
Launch Daemons:
| [Loaded] | com.microsoft.office.licensing.helper.plist (? 6d8cb30e - installed 2010-08-25) |
User Login Items:
SpeechSynthesisServer Application (? - installed 2018-07-11)
(/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks /SpeechSynthesis.framework/Versions/A/SpeechSynthesisServer.app)
Internet Plug-ins:
iPhotoPhotocast: (installed 2007-06-15)
QuickTime Plugin: (installed 2018-07-11)
AdobePDFViewer: (installed 2012-01-15)
OfficeLiveBrowserPlugin: (installed 2009-10-23)
SharePointBrowserPlugin: (installed 2017-10-05)
Silverlight: (installed 2013-12-14)
JavaAppletPlugin: (installed 2014-04-30)
Time Machine:
Skip System Files: No
Mobile backups: Yes
Auto backup: Yes
Volumes being backed up:
Macintosh HD: Disk size: 500.07 GB - Disk used: 46.12 GB
Destinations:
L*****T [Local] (Last used)
Total size: 999.86 GB
Total number of backups: 7
Oldest backup: 2018-02-04 14:59:46
Last backup: 2018-07-22 13:22:08
Top Processes by CPU:
| Process (count) | Source | % of CPU | Location |
| WindowServer | Apple | 7 |
| kernel_task | Apple | 2 |
| sandboxd | Apple | 0 |
| MATLAB | ? | 0 | /Applications/MATLAB_R2018a.app |
| Opera Helper (5) | Opera Software AS | 0 |
Top Processes by Memory:
| Process (count) | Source | RAM usage | Location |
| kernel_task | Apple | 1001 MB |
| MATLAB | ? | 795 MB | /Applications/MATLAB_R2018a.app |
| Opera Helper (6) | Opera Software AS | 550 MB |
| mdworker (11) | Apple | 343 MB |
| Opera | ? | 247 MB | /Applications/Opera.app |
Top Processes by Network Use:
| Process | Source | Input | Output | Location |
| Opera | ? | 928 KB | 61 KB | /Applications/Opera.app |
| mDNSResponder | Apple | 93 KB | 64 KB |
| Mail | Apple | 109 KB | 30 KB |
| netbiosd | Apple | 7 KB | 14 KB |
| apsd | Apple | 5 KB | 10 KB |
Top Processes by Energy Use:
| Process (count) | Source | Energy (0-100) | Location |
| Opera | ? | 2 | /Applications/Opera.app |
| WindowServer | Apple | 1 |
| MATLAB | ? | 1 | /Applications/MATLAB_R2018a.app |
| Opera Helper (6) | Opera Software AS | 1 |
| hidd | Apple | 1 |
Virtual Memory Information:
| Available RAM | 2.88 GB |
| Free RAM | 59 MB |
| Used RAM | 5.12 GB |
| Cached files | 2.82 GB |
| Swap Used | 0 B |
Software Installs (past 30 days):
| Name | Version | Install Date |
| Adobe Flash Player | 2018-07-11 |
| Numbers | 5.0 | 2018-07-11 |
| Keynote | 8.0 | 2018-07-11 |
| The Unarchiver | 4.0.0 | 2018-07-11 |
| Pages | 7.0 | 2018-07-11 |
| iTunes | 12.8 | 2018-07-11 |
| Adobe Pepper Flash Player | 2018-07-11 |
| Ka-Block! | 3.1 | 2018-07-15 |
| Sync Folders | 3.4.5 | 2018-07-15 |
End of report