Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add readuntil benchmarks #119

Merged
merged 2 commits into from
Sep 21, 2017
Merged

Add readuntil benchmarks #119

merged 2 commits into from
Sep 21, 2017

Conversation

omus
Copy link
Contributor

@omus omus commented Sep 19, 2017


buffer = IOBuffer(("bar" ^ 20000) * "ians")
target = ("bar" ^ 300) * "ian"
g["barbarian backtrack"] = @benchmarkable readuntil(seekstart($buffer), $target)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good name

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my quest for good backtracking words to use I also found:

  • assassin
  • cincinatti
  • conconscious
  • murmurously
  • reprepare

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, all good names.

Copy link
Member

@ararslan ararslan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me

target = ("A" ^ 5000) * "Z"
g["backtracking"] = @benchmarkable readuntil(seekstart($buffer), $target)

buffer = IOBuffer(randstring('A':'X', 40000) * target)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use randstring(RandUtils.SEED, 'A':'X', 40000) for stable random values

Copy link
Member

@vtjnash vtjnash Sep 20, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually, looks like it should be String(rand(RandUtils.SEED, 'A':'X', 40000)), so it works on v0.5 and v0.6 too?

@ararslan ararslan merged commit f458ee1 into JuliaCI:master Sep 21, 2017
@omus omus deleted the cv/readuntil branch September 21, 2017 19:58
Keno pushed a commit that referenced this pull request Feb 4, 2022
* Fix time function qualification

* Update ExecutionTests.jl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants