Skip to content

Trie impl is slower on JRuby than other Rubies #426

@headius

Description

@headius

The code, by @sirupsen, is here: https://gist.github.com/7f2fa662a36638e717d8

We run it slower then either 1.9.3 or Rubinius, so something's broken:

system ~/projects/jruby $ ruby-1.9.3 trie.rb 
Trie it: 2.592618
Stress: 0.22932
Trie it: 1.102871
Stress: 0.231971
Trie it: 1.064968
Stress: 0.223817
Trie it: 1.049926
Stress: 0.409452
Trie it: 0.874368
Stress: 0.223402

system ~/projects/jruby $ ../rubinius/bin/rbx -X19 trie.rb 
Trie it: 18.016276
Stress: 0.26924500000000007
Trie it: 3.670808
Stress: 0.21206699999999998
Trie it: 2.890892
Stress: 0.21263200000000004
Trie it: 1.454035
Stress: 0.210246
Trie it: 2.12137
Stress: 0.21095700000000006

system ~/projects/jruby $ jruby trie.rb 
Trie it: 3.196
Stress: 0.997
Trie it: 2.422
Stress: 0.55
Trie it: 2.503
Stress: 0.493
Trie it: 2.513
Stress: 0.489
Trie it: 2.222
Stress: 0.501

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions