Skip to content

Instantly share code, notes, and snippets.

@philiplambok
Last active May 31, 2019 05:58
Show Gist options
  • Save philiplambok/bb51fdcb6df980e0f705a402e11be838 to your computer and use it in GitHub Desktop.
Save philiplambok/bb51fdcb6df980e0f705a402e11be838 to your computer and use it in GitHub Desktop.
CMS Test profiler.

Saat ini

$> time rspec
bundle exec rspec  488,63s user 20,80s system 39% cpu 21:22,95 total

Setelah di improve.

(start --branch develop)

  1. Disable rails menulis log testing (test.log)
$> time rspec
bundle exec rspec  478,22s user 18,15s system 39% cpu 21:00,37 total
  1. Remove database_cleaner, and use system spec instead feature spec.
$> time rspec
bundle exec rspec  102,85s user 13,22s system 68% cpu 2:49,01 total

(pull origin feature/CU-173)

$> time rspec
bundle exec rspec  42,90s user 2,37s system 69% cpu 1:05,15 total
  1. Disable rails test logger.
$> time rspec
bundle exec rspec  34,71s user 1,20s system 88% cpu 40,692 total
  1. fix build (seeds problem in moodle related test)
$> time rspec
bundle exec rspec  35,86s user 1,30s system 87% cpu 42,272 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment