Skip to content

Instantly share code, notes, and snippets.

@boris-spas
Created October 26, 2021 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boris-spas/2325cf0b0af02ee2b08d142602bb25a3 to your computer and use it in GitHub Desktop.
Save boris-spas/2325cf0b0af02ee2b08d142602bb25a3 to your computer and use it in GitHub Desktop.
$GRAALVM_HOME/bin/js --cpusampler primes-opt.js
----------------------------------------------------------------------------------------------
Sampling Histogram. Recorded 40 samples with period 10ms. Missed 0 samples.
Self Time: Time spent on the top of the stack.
Total Time: Time spent somewhere on the stack.
----------------------------------------------------------------------------------------------
Thread[main,5,main]
Name || Total Time || Self Time || Location
----------------------------------------------------------------------------------------------
accept || 340ms 85.0% || 340ms 85.0% || primes-opt.js~34-45:592-898
isPrime || 60ms 15.0% || 60ms 15.0% || primes-opt.js~2-9:26-161
next || 340ms 85.0% || 0ms 0.0% || primes-opt.js~54-60:1016-1216
:program || 400ms 100.0% || 0ms 0.0% || primes-opt.js~1-74:0-1540
findPrime || 30ms 7.5% || 0ms 0.0% || primes-opt.js~11-19:164-325
----------------------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment