Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Created July 19, 2017 00:21
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 MasterDuke17/5da8e26ef847f7ed549cde31ddb18af2 to your computer and use it in GitHub Desktop.
Save MasterDuke17/5da8e26ef847f7ed549cde31ddb18af2 to your computer and use it in GitHub Desktop.
'use nqp; say nqp::index(nqp::indexingoptimized(("abcde" x 100_000_000) ~ "foo"), "foo", 0) > -1;'
94.23% moar libmoar.so [.] MVM_string_indexing_optimized
1.28% moar libc-2.25.so [.] memchr
0.39% moar libmoar.so [.] MVM_interp_run
0.24% moar libmoar.so [.] MVM_serialization_read_int
0.23% moar libmoar.so [.] MVM_serialization_read_ref
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment