-
Notifications
You must be signed in to change notification settings - Fork 375
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
String concat contains dummy comparision. #158
Comments
Pull requests are always appreciated. The problem with randomized data, of course, is that you don't get reproducible results. At the very least, the seed should be specified so results could be deterministic, IMHO. |
Randomization must be appropriate to the test, in that case results are reproducible |
Hmm this is interesting, actually. Although if we're going to randomize things, I also do believe we'd need things to be averaged out. Did you test multiple runs of your code, @alekseyl? Also, if you can, feel free to open a PR and we can continue discussions there. |
Hi @mateusdeap, here is the PR for you guys to review and check on your own: https://github.com/fastruby/fast-ruby/pull/216/files |
You are doing your test without any randomization and length variety, so results are incorrect completely.
You simply just testing how fast are 'foo' and 'bar' concatenation, and only
Live case scenario looks more like this:
OK
Also you didn't test on multiple string concat, where actually "#{'foo'} #{'bar'} #{'shines'}".
The text was updated successfully, but these errors were encountered: