Skip to content

Instantly share code, notes, and snippets.

@malthe
Created October 26, 2016 18:54
Show Gist options
  • Save malthe/83c9913aa907cb0468e8296947196c6e to your computer and use it in GitHub Desktop.
Save malthe/83c9913aa907cb0468e8296947196c6e to your computer and use it in GitHub Desktop.
use "ponybench"
actor Main
let length: USize = 1024 * 1024
new create(env: Env) =>
let s = recover ref String.create(length) end
while s.size() < length do
s.append("abcde ")
end
let s' = s.clone()
let bench = PonyBench(env)
let split = object val
let s: String val = consume s'
fun apply() =>
s.split()
end
bench[None]("split", split)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment