Constant CPU cost algorithm

Is the work done in pure Erlang/Elixir code, a NIF, a dirty NIF, an external process?