← Back to team overview

zorba-coders team mailing list archive

Re: lp:~zorba-coders/zorba/objects-with-unordered-maps-and-const-char-star into lp:zorba

 

Review: Approve

I benchmarked the following query in RelWithDebInfo:

for $i in 10 to 200
return {
  variable $o := {|
    for $j in 1 to $i
    return { xs:string($j) : "foo" }
  |};

  for $i in 1 to 20
  return {
    $o(string($i));
    $o(string($i - 5));
    $o(string($i - 8));
  }
}

std::unordered_map (this branch)

Number of executions = 5
Average Execution Time  : 192.889 (user: 192.556) milliseconds
Average Total Time      : 194.554 (user: 194.217) milliseconds
real	0m1.105s
user	0m1.092s
sys	0m0.008s

HashMap (trunk)

Number of executions = 5
Average Execution Time  : 271.695 (user: 271.224) milliseconds
Average Total Time      : 273.574 (user: 273.099) milliseconds
real	0m1.501s
user	0m1.484s
sys	0m0.016s
-- 
https://code.launchpad.net/~zorba-coders/zorba/objects-with-unordered-maps-and-const-char-star/+merge/124225
Your team Zorba Coders is subscribed to branch lp:zorba.


References