Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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