<?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>32804</bug_id>
          
          <creation_ts>2009-12-20 17:04:50 -0800</creation_ts>
          <short_desc>SunSpider: crypto-aes has a call to Date.getTime() which makes it non-deterministic</short_desc>
          <delta_ts>2010-08-05 05:57:20 -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>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>43253</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Nicholas Nethercote">nnethercote</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jwalden+bwo</cc>
    
    <cc>mjs</cc>
    
    <cc>sdwilsh</cc>
    
    <cc>seth.gaurav</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>173837</commentid>
    <comment_count>0</comment_count>
    <who name="Nicholas Nethercote">nnethercote</who>
    <bug_when>2009-12-20 17:04:50 -0800</bug_when>
    <thetext>This is true as of SunSpider-0.9.1, but has been true for longer than that, AFAICT.  IMHO a benchmark suite should be deterministic.  The variation caused by the Date.getTime() is large enough that it changes the amount of code is traced by TraceMonkey.  I&apos;d suggest hard-wiring a particular date+time into the test.

There may be some other non-determinism in SunSpider.  string-base64 and string-validate-input both call Math.random(), for example.

Thanks for introducing version numbers for SunSpider, BTW, I think that&apos;s an excellent decision.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173896</commentid>
    <comment_count>1</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2009-12-20 23:36:26 -0800</bug_when>
    <thetext>Thanks for the report. 1.9.1 is not released yet so we may still be able to fix this, but if not, we&apos;ll probably do so for a later version.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>194606</commentid>
    <comment_count>2</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2010-02-28 14:26:43 -0800</bug_when>
    <thetext>I think we&apos;ll probably reserve fixing the nondeterminism for SunSpider 2.0.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>