diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-07 11:43:17 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-07 11:43:17 +0000 |
commit | 2c31c3b45ed5ef3c2c0a2308957fb98334367cf4 (patch) | |
tree | 650931b359039b52c0e9f010957bf6ce21bea796 /benchmark | |
parent | e2cabc22be830ac2a1871dc6c8107cbd759da7ab (diff) | |
download | ruby-2c31c3b45ed5ef3c2c0a2308957fb98334367cf4.tar.gz |
string.c: fix non-embedded string
* string.c (rb_str_resurrect): fix resurrection of short enough to
be embedded but not embedded string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/bm_vm2_string_literal.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/benchmark/bm_vm2_string_literal.rb b/benchmark/bm_vm2_string_literal.rb new file mode 100644 index 0000000000..1d73036849 --- /dev/null +++ b/benchmark/bm_vm2_string_literal.rb @@ -0,0 +1,5 @@ +i = 0 +while i<6_000_000 # benchmark loop 2 + i += 1 + x = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" +end |