Skip to content

Instantly share code, notes, and snippets.

@boris-spas
Created Oct 26, 2021
Embed
What would you like to do?
$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