I should point out this experiment came from when I was trying to replicate 
these results:
  https://kkaefer.com/node-cpp-modules/#benchmark-thread-pool

In his case, the entire work function is optimized away by Crankshaft in a 
very obvious way.  The experiment compares his loop body to a no-op.

              -J


Work Function: Math.floor(133.7 / Math.PI)

         1 workfun operations performed at       7092 ops/sec
         1 no-ops performed at                 333333 ops/sec
         2 workfun operations performed at     142857 ops/sec
         2 no-ops performed at               Infinity ops/sec
         4 workfun operations performed at   Infinity ops/sec
         4 no-ops performed at               Infinity ops/sec
         8 workfun operations performed at    8000000 ops/sec
         8 no-ops performed at               Infinity ops/sec
        16 workfun operations performed at   16000000 ops/sec
        16 no-ops performed at               Infinity ops/sec
        32 workfun operations performed at   16000000 ops/sec
        32 no-ops performed at               Infinity ops/sec
        64 workfun operations performed at    9142857 ops/sec
        64 no-ops performed at               Infinity ops/sec
       128 workfun operations performed at     405063 ops/sec
       128 no-ops performed at               Infinity ops/sec
       256 workfun operations performed at    1855072 ops/sec
       256 no-ops performed at              256000000 ops/sec
       512 workfun operations performed at   64000000 ops/sec
       512 no-ops performed at              256000000 ops/sec
      1024 workfun operations performed at   68266666 ops/sec
      1024 no-ops performed at              256000000 ops/sec
      2048 workfun operations performed at   60235294 ops/sec
      2048 no-ops performed at              292571428 ops/sec
      4096 workfun operations performed at   52512820 ops/sec
      4096 no-ops performed at              273066666 ops/sec
      8192 workfun operations performed at   66064516 ops/sec
      8192 no-ops performed at              282482758 ops/sec
     16384 workfun operations performed at   59148014 ops/sec
     16384 no-ops performed at              163840000 ops/sec

*Suddenly a re-compilation with additional optimization occurs:*     32768 
workfun operations performed at  910222222 ops/sec
     32768 no-ops performed at              910222222 ops/sec
     65536 workfun operations performed at  923042253 ops/sec
     65536 no-ops performed at              923042253 ops/sec
    131072 workfun operations performed at  929588652 ops/sec
    131072 no-ops performed at              929588652 ops/sec
    262144 workfun operations performed at  929588652 ops/sec
    262144 no-ops performed at              929588652 ops/sec
    524288 workfun operations performed at  931239786 ops/sec
    524288 no-ops performed at              931239786 ops/sec



>>

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to