testcache.pdf

5bfed9aa3a9ebccb0c0f0cb65ee9e012?s=47 Seiji Takahashi
February 20, 2018
23

 testcache.pdf

5bfed9aa3a9ebccb0c0f0cb65ee9e012?s=128

Seiji Takahashi

February 20, 2018
Tweet

Transcript

  1. 2.

    Seiji Takahashi @__timakin__ • Career • DeNA • Platform Development

    • Serverside Engineering (Perl)
 • Translimit • Game Development: Craft Warrirors • Game Client Side (Cocos-2dx, C++)
 • Gunosy • Application Dev: LUCRA • Serverside Engineering (Go) • iOS Client Side (Swift) • Engieering • Language: Go (Contributed), Swift • Platform: GAE, AWS
  2. 3.
  3. 6.

    8IBUJTUFTUDBDIJOH if the test executable and 
 command line match

    a previous run and 
 the files and environment variables consulted by that run have not changed either, go test will print the previous test output, replacing the elapsed time with the string “(cached).”
  4. 9.

    8IBUJTUFTUDBDIJOH Benchmarking, and cpu/mem profiling might slightly change from run

    to run. So they aren’t cached. /PODBDIFBCMF TUBUFGVM PQUJPOT
  5. 10.
  6. 11.
  7. 12.
  8. 13.
  9. 16.
  10. 17.
  11. 18.
  12. 19.
  13. 20.

    In the process of code-reading and implementing, code is often

    written near an original caching execution. By chance I’ve read that code before I actually use the caching strategy. DBDIFBCMFDPWFSQSPpMF .ZpSTUDPOUBDUXJUIUIJTGFBUVSF