This is the code used for my blog post "Using Realtime’s migration API with PubNub" available at http://sergiocosta.me/post/44218400668/using-realtimes-migration-api-with-pubnub
The code used here based on PubNub's which you can get at https://github.com/pubnub/pubnub-api/tree/master/app-showcase/performance-meter.
For this demo, I am using ORTC's migration API which you can find at http://www.xrtml.org/downloads_62.html#migration:pubnub.
Performance meter with PubNub: http://sergiocosta.azurewebsites.net/demos/ortc-pubnub-performance-meter/index.html
Performance meter with ORTC: http://sergiocosta.azurewebsites.net/demos/ortc-pubnub-performance-meter/ortc.html