Skip to content

Instantly share code, notes, and snippets.

@samcv
Created August 25, 2017 02:31
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 samcv/f885c0590515603c518c76644198055d to your computer and use it in GitHub Desktop.
Save samcv/f885c0590515603c518c76644198055d to your computer and use it in GitHub Desktop.

use nqp; say nqp::index("a" x 99999999, 'aaaaaaaaaab', 0); say now - INIT now

  • after 2.6
  • before 6.977969

use nqp; say nqp::index("a" x 99999999, 'ab', 0); say now - INIT now

  • after 2.62
  • before 6.9547285

use nqp; say nqp::index("a" x 99999999, 'ba', 0); say now - INIT now

  • after 1.86
  • before 3.7365442
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment