Skip to content

Instantly share code, notes, and snippets.

@SamSaffron
Last active December 31, 2016 16:32
Show Gist options
  • Save SamSaffron/2a1c96e37e022153d86d06f9d0a7bf26 to your computer and use it in GitHub Desktop.
Save SamSaffron/2a1c96e37e022153d86d06f9d0a7bf26 to your computer and use it in GitHub Desktop.
How to run Discourse tests really fast

Tips for optimizing performance of the Discourse gigantic test suite

Change memory allocator

default:            9:37
tcmalloc:           8:32
lockless:           8:19
jemalloc 3.6.0:     7:45

Bigger method cache

baseline:                                 7:45
RUBY_GC_METHOD_CACHE_SIZE=131072:         7:36

PG tuning

baseline:                                 7:36
fullpage_writes=off fsync=off             7:23  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment