exec() Benchmark
Before running on Android, set the following constants in NativeToJsMessagingBridge:
ENABLE_LOCATION_CHANGE_EXEC_MODE = true
DISABLE_EXEC_CHAINING = true
As of iOS 7.0.2, Andrew found that the iframe bridge is still the fastest on iOS.
Settings
Test Duration:
1 Second
3 Seconds
10 seconds
JS->Native Bridge Mode:
Native->JS Bridge Mode:
Force async JS->Native (avoids evalAndFetch optimization on iOS)
Force async Native->JS
Bulk Echo Mode (test only native->JS)
Binary Payload
These two require async_base64_android branch of cordova-js
Use FileReader to encode binary
Use XHR to decode binary
Payload size (in 100s of bytes)
Start
some text.
Drag Me
text box to see if focus is lost by bridge or if there is typing lag.
 
Back
Results:
Clear
You've reached the bottom.