chakra-core / ChakraCore

ChakraCore is an open source Javascript engine with a C API.
MIT License
9.13k stars 1.2k forks source link

Cannot finish web-tooling-benchmark test #6667

Open hez2010 opened 3 years ago

hez2010 commented 3 years ago

Cannot finish web-tooling-benchmark test

I'm trying to run web-tooling-benchmark on ChakraCore (version in master branch) but it seems that it just stuck at coffeescript test and cannot finish the entire test:

ch cli.js

Output (stuck at coffeescript test and not able to get the test result):

Running Web Tooling Benchmark v0.5.3…
-------------------------------------
         acorn:  3.75 runs/s
         babel:  4.08 runs/s
  babel-minify:  3.21 runs/s
       babylon:  4.83 runs/s
         buble:  4.59 runs/s
          chai:  3.69 runs/s
(stuck here)

While using v8 with node 14:

Running Web Tooling Benchmark v0.5.3…
-------------------------------------
         acorn: 10.86 runs/s
         babel:  8.31 runs/s
  babel-minify:  9.93 runs/s
       babylon:  7.41 runs/s
         buble:  4.44 runs/s
          chai: 10.38 runs/s
  coffeescript:  5.96 runs/s
        espree:  2.80 runs/s
       esprima:  6.93 runs/s
        jshint:  9.53 runs/s
         lebab:  9.56 runs/s
       postcss:  5.27 runs/s
       prepack:  5.56 runs/s
      prettier:  3.53 runs/s
    source-map:  4.80 runs/s
        terser: 13.26 runs/s
    typescript:  7.67 runs/s
     uglify-js:  4.07 runs/s
-------------------------------------
Geometric mean:  6.66 runs/s

Prebuilt test suite: dist.zip

Also I think this can be added into ChakraCore benchmark test #6431

rhuanjl commented 3 years ago

This is a bug - in a debug build it hits an Assertion, in a release build it gets stuck in an infinite loop, going to be a pain to work out what the underlying cause is.

This is the Assertion: https://github.com/chakra-core/ChakraCore/blob/f5296a1bfdb619ec55d2cbf909ee7747d35939c5/lib/Backend/DbCheckPostLower.cpp#L81