twlevelup / watch_edition_react

A smartwatch simulator, built in ReactJS
MIT License
3 stars 2 forks source link

Slow test execution on docker-for-mac #27

Open raytung opened 7 years ago

raytung commented 7 years ago

On docker:

$ time ./go test
# ...
$ ./go test  0.02s user 0.02s system 0% cpu 52.833 total

Without docker:

$ time npm test
# ...
$ npm test  5.89s user 0.56s system 93% cpu 6.898 total
raytung commented 7 years ago

https://forums.docker.com/t/file-access-in-mounted-volumes-extremely-slow-cpu-bound/8076/158

z0u commented 7 years ago

Can you try the docker-sync branch? It attempts to deal with this according to the suggestions in this comment:

See README-docker.md for more details.

raytung commented 7 years ago

We just tried it out and it's still taking ~55secs