项目作者: gergoerdi

项目描述 :
Benchmark for various methods of simulating Clash
高级语言: Haskell
项目地址: git://github.com/gergoerdi/clash-bounce-bench.git
创建时间: 2020-02-22T02:20:13Z
项目社区:https://github.com/gergoerdi/clash-bounce-bench

开源协议:

下载


  1. Run the hand-translated C benchmark:
  1. $ cd csim
  2. $ make
  3. $ ../_build/csim/Bounce
  4. Hand-translated C, from C: 4192001 cycles, 61 ms
  1. Run the Verilator C++ benchmark:
  1. $ cd verilator
  2. $ make
  3. $ ../_build/verilator/SimMain
  4. Verilator, from C: 4192001 cycles, 125 ms
  1. Run the Haskell benchmarks
  1. $ stack build
  2. $ stack run sim-hs
  3. Clash: 4192001 cycles, 12799 ms
  4. $ stack run sim-ffi
  5. Hand-translated C, from Haskell: 4192001 cycles, 241 ms
  6. $ stack run sim-verilator
  7. Verilator, from Haskell: 4192000 cycles, 365 ms
  1. Marvel at the Haskell SDL frontend with VGA signal interpreter
  1. $ stack run sim-ffi-sdl
  2. 60 frames in 1820 ms, 33.0 fps
  3. 60 frames in 1745 ms, 34.4 fps
  4. 60 frames in 1885 ms, 31.8 fps
  5. 60 frames in 1961 ms, 30.6 fps
  6. 60 frames in 1779 ms, 33.7 fps
  7. $ stack run sim-verilator-sdl
  8. 60 frames in 2948 ms, 20.4 fps
  9. 60 frames in 2609 ms, 23.0 fps
  10. 60 frames in 2524 ms, 23.8 fps
  11. 60 frames in 2593 ms, 23.1 fps