Skip to content

Instantly share code, notes, and snippets.

@oleavr
Last active January 29, 2016 19:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oleavr/bfd9b65865e9f17914f2 to your computer and use it in GitHub Desktop.
Save oleavr/bfd9b65865e9f17914f2 to your computer and use it in GitHub Desktop.
CydiaSubstrate vs Frida

Measured through:

for ((n=0;n<10;n++)); do ./gum-tests -p /Core/Interceptor/cydia_substrate_replace_performance -m slow; done
for ((n=0;n<10;n++)); do ./gum-tests -p /Core/Interceptor/replace_performance -m slow; done

UPDATE: I published these results right after landing some massive architectural changes, and I got so excited that I published them immediately. Just took the time to profile the new code, and discovered an easy optimization to make it even faster. Check the gist's history to see the difference.

/Core/Interceptor/cydia_substrate_replace_performance: <hooked 204 functions in 1735 ms> OK
/Core/Interceptor/cydia_substrate_replace_performance: <hooked 204 functions in 1691 ms> OK
/Core/Interceptor/cydia_substrate_replace_performance: <hooked 204 functions in 1697 ms> OK
/Core/Interceptor/cydia_substrate_replace_performance: <hooked 204 functions in 1689 ms> OK
/Core/Interceptor/cydia_substrate_replace_performance: <hooked 204 functions in 1695 ms> OK
/Core/Interceptor/cydia_substrate_replace_performance: <hooked 204 functions in 1716 ms> OK
/Core/Interceptor/cydia_substrate_replace_performance: <hooked 204 functions in 1915 ms> OK
/Core/Interceptor/cydia_substrate_replace_performance: <hooked 204 functions in 1680 ms> OK
/Core/Interceptor/cydia_substrate_replace_performance: <hooked 204 functions in 1920 ms> OK
/Core/Interceptor/cydia_substrate_replace_performance: <hooked 204 functions in 1686 ms> OK
/Core/Interceptor/replace_performance: <hooked 204 functions in 240 ms> OK
/Core/Interceptor/replace_performance: <hooked 204 functions in 223 ms> OK
/Core/Interceptor/replace_performance: <hooked 204 functions in 221 ms> OK
/Core/Interceptor/replace_performance: <hooked 204 functions in 219 ms> OK
/Core/Interceptor/replace_performance: <hooked 204 functions in 217 ms> OK
/Core/Interceptor/replace_performance: <hooked 204 functions in 214 ms> OK
/Core/Interceptor/replace_performance: <hooked 204 functions in 224 ms> OK
/Core/Interceptor/replace_performance: <hooked 204 functions in 175 ms> OK
/Core/Interceptor/replace_performance: <hooked 204 functions in 216 ms> OK
/Core/Interceptor/replace_performance: <hooked 204 functions in 217 ms> OK
/Core/Interceptor/cydia_substrate_replace_performance: <hooked 217 functions in 840 ms> OK
/Core/Interceptor/cydia_substrate_replace_performance: <hooked 217 functions in 645 ms> OK
/Core/Interceptor/cydia_substrate_replace_performance: <hooked 217 functions in 666 ms> OK
/Core/Interceptor/cydia_substrate_replace_performance: <hooked 217 functions in 724 ms> OK
/Core/Interceptor/cydia_substrate_replace_performance: <hooked 217 functions in 855 ms> OK
/Core/Interceptor/cydia_substrate_replace_performance: <hooked 217 functions in 733 ms> OK
/Core/Interceptor/cydia_substrate_replace_performance: <hooked 217 functions in 723 ms> OK
/Core/Interceptor/cydia_substrate_replace_performance: <hooked 217 functions in 757 ms> OK
/Core/Interceptor/cydia_substrate_replace_performance: <hooked 217 functions in 786 ms> OK
/Core/Interceptor/cydia_substrate_replace_performance: <hooked 217 functions in 747 ms> OK
/Core/Interceptor/replace_performance: <hooked 217 functions in 165 ms> OK
/Core/Interceptor/replace_performance: <hooked 217 functions in 114 ms> OK
/Core/Interceptor/replace_performance: <hooked 217 functions in 119 ms> OK
/Core/Interceptor/replace_performance: <hooked 217 functions in 115 ms> OK
/Core/Interceptor/replace_performance: <hooked 217 functions in 118 ms> OK
/Core/Interceptor/replace_performance: <hooked 217 functions in 118 ms> OK
/Core/Interceptor/replace_performance: <hooked 217 functions in 115 ms> OK
/Core/Interceptor/replace_performance: <hooked 217 functions in 118 ms> OK
/Core/Interceptor/replace_performance: <hooked 217 functions in 117 ms> OK
/Core/Interceptor/replace_performance: <hooked 217 functions in 114 ms> OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment