Skip to content

Instantly share code, notes, and snippets.

@cdimartino
Last active August 1, 2020 04:50
Show Gist options
  • Save cdimartino/62cc9d6c70def0a528ea53912b8913db to your computer and use it in GitHub Desktop.
Save cdimartino/62cc9d6c70def0a528ea53912b8913db to your computer and use it in GitHub Desktop.
Representer Timings
❯ export SKIP_SMART_DYNAMIC_EXAMPLES=false; for iter in `seq 1 5`; do /usr/bin/time rails runner 'puts :booted_without_database_calls'
booted_without_database_calls
14.25 real 8.50 user 3.98 sys
booted_without_database_calls
13.97 real 8.58 user 4.01 sys
booted_without_database_calls
14.04 real 8.56 user 4.05 sys
booted_without_database_calls
12.76 real 8.35 user 3.80 sys
booted_without_database_calls
12.60 real 8.55 user 3.79 sys
❯ export SKIP_SMART_DYNAMIC_EXAMPLES=false; for iter in `seq 1 10`; do /usr/bin/time rails runner 'puts :booted_with_database_calls'; done | grep -v AssetSync
booted_with_database_calls
16.27 real 8.89 user 4.80 sys
booted_with_database_calls
16.09 real 9.15 user 4.94 sys
booted_with_database_calls
13.61 real 9.05 user 4.61 sys
booted_with_database_calls
14.58 real 9.09 user 4.76 sys
booted_with_database_calls
14.26 real 8.88 user 4.71 sys
booted_with_database_calls
14.26 real 9.34 user 4.76 sys
booted_with_database_calls
16.06 real 9.38 user 5.00 sys
booted_with_database_calls
14.33 real 9.12 user 4.72 sys
booted_with_database_calls
14.73 real 9.02 user 4.66 sys
booted_with_database_calls
15.57 real 9.94 user 4.99 sys
@cdimartino
Copy link
Author

realized that export SKIP_SMART_DYNAMIC_EXAMPLES=false; was missing! 🤦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment