<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>19116</bug_id>
          
          <creation_ts>2008-05-18 15:50:45 -0700</creation_ts>
          <short_desc>SquirrelFish shouldn&apos;t regress on variable lookups</short_desc>
          <delta_ts>2008-05-25 22:01:32 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://flesler.webs.com/Benchmark/vars/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anthony Ricaud">rik</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mjs</cc>
    
    <cc>mrowe</cc>
    
    <cc>oliver</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80864</commentid>
    <comment_count>0</comment_count>
    <who name="Anthony Ricaud">rik</who>
    <bug_when>2008-05-18 15:50:45 -0700</bug_when>
    <thetext>Nightlies have great performance improvements compared to Safari 3.1. SquirellFish shouldn&apos;t regress on that point. It&apos;s a test to compare lookups performance with variables in different scopes

For the record, here are the results I have on my machine :
FF3ß5
global : average : 44ms
local1 : average : 57.6ms
local2 : average : 55.8ms
local3 : average : 36.4ms

Opera 9.27
global : average : 79ms
local1 : average : 78.4ms
local2 : average : 79.2ms
local3 : average : 74.8ms

Opera 9.5
global : average : 51.4ms
local1 : average : 26.8ms
local2 : average : 35.6ms
local3 : average : 24ms

Safari 3.1
global : average : 90.8ms
local1 : average : 54.8ms
local2 : average : 44.8ms
local3 : average : 34.4ms

Webkit r33561
global : average : 17.8ms
local1 : average : 17.4ms
local2 : average : 16.4ms
local3 : average : 16ms</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80865</commentid>
    <comment_count>1</comment_count>
    <who name="Anthony Ricaud">rik</who>
    <bug_when>2008-05-18 16:06:07 -0700</bug_when>
    <thetext>The original blog post of the author for more information : http://flesler.blogspot.com/2008/04/benchmarking-javascript-variables-and.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80889</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-05-19 03:57:49 -0700</bug_when>
    <thetext>Are there measurements that suggest SquirrelFish is a regression over trunk on this microbenchmark?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80890</commentid>
    <comment_count>3</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2008-05-19 04:01:54 -0700</bug_when>
    <thetext>Mark, this is basically the tracking bug for the multiscope optimisation, squirrelfish performance is currently effectively a faster version of S3.1 -- basically resolve time for an out of scope var is O(N) wrt to closure depth, vs. effectively O(1) on trunk</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80892</commentid>
    <comment_count>4</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2008-05-19 04:02:12 -0700</bug_when>
    <thetext>(I&apos;m actually working on this atm)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81087</commentid>
    <comment_count>5</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2008-05-21 01:50:32 -0700</bug_when>
    <thetext>resolve is corrected
Committing to http://svn.webkit.org/repository/webkit/branches/squirrelfish ...
	M	JavaScriptCore/ChangeLog
	M	JavaScriptCore/VM/CodeBlock.cpp
	M	JavaScriptCore/VM/CodeBlock.h
	M	JavaScriptCore/VM/CodeGenerator.cpp
	M	JavaScriptCore/VM/CodeGenerator.h
	M	JavaScriptCore/VM/Machine.cpp
	M	JavaScriptCore/VM/Opcode.h
	M	JavaScriptCore/kjs/JSVariableObject.h
Committed r33958

Looks to be twice as fast as in trunk, still have base resolution to go</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81105</commentid>
    <comment_count>6</comment_count>
    <who name="Anthony Ricaud">rik</who>
    <bug_when>2008-05-21 11:00:17 -0700</bug_when>
    <thetext>Squirellfish branch r33967:

global : average : 9.6ms
local1 : average : 8.8ms
local2 : average : 8.4ms
local3 : average : 8ms

I think it&apos;s not regressing :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81231</commentid>
    <comment_count>7</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2008-05-22 12:38:02 -0700</bug_when>
    <thetext>Last fix (for read/write/modify operations) 
Committing to http://svn.webkit.org/repository/webkit/trunk ...
	M	JavaScriptCore/ChangeLog
	M	JavaScriptCore/kjs/nodes.cpp
Committed r34030

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81510</commentid>
    <comment_count>8</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2008-05-25 22:01:19 -0700</bug_when>
    <thetext>*** Bug 18645 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81512</commentid>
    <comment_count>9</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2008-05-25 22:01:32 -0700</bug_when>
    <thetext>*** Bug 18823 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>