-
-
Save malthe/83c9913aa907cb0468e8296947196c6e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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