Why Nostr? What is Njump?
2023-09-01 09:59:13
in reply to

Paul on Nostr: npub19lt42…6qfjk If you want a rough and ready figure you can call microtime before ...

If you want a rough and ready figure you can call microtime before and after and compare the results, likewise memory_get_usage. They aren't great but they will probably tell you if one function is taking 10x as long as another.

If they're not enough then really Xdebug + an analyser such as KCacheGrind are the way to go.

https://3v4l.org/ allows you to run code online but I don't think it would help with profiling.
Author Public Key
npub146a7z8zrtrm0azshh5fpep4fwtecazcm4trn8vp74hg97tp5f6pqj6mwu2