
Yet another reason your Docker containers may be slow on EC2: clock_gettime, gettimeofday and seccomp
Thanks to Gabriel Hollies for his help in writing this post TL;DR: on AWS EC2 M4 instances, calls to System.nanoTime() and System.currentTimeMillis() make system calls, and these system calls are subject to even more overhead when running in Docker…