haskell-game / sdl2

Haskell bindings to the SDL2 library
Other
363 stars 87 forks source link

Testsuite `sdl-space` fails in 2.4.1.0 #191

Open typetetris opened 6 years ago

typetetris commented 6 years ago

Logfile:

Test suite sdl-space: RUNNING...

pollEvent

  Case             Allocated  GCs
  pollEvent 1          1,512    0
  pollEvent 10         1,512    0
  pollEvent 100        1,512    0
  pollEvent 1000       1,512    0
  pollEvent 10000      1,512    0

pollEvent+clear

  Case                     Allocated  GCs
  pollEvent + clear 1          2,104    0
  pollEvent + clear 10         3,616    0
  pollEvent + clear 100        3,784    0
  pollEvent + clear 1000       3,784    0
  pollEvent + clear 10000      3,784    0

pollEvent+present

  Case                      Allocated  GCs
  pollEvent + present 1         2,296    0
  pollEvent + present 10        3,808    0
  pollEvent + present 100       9,728    0
  pollEvent + present 1000     13,272    0

pollEvent+drawColor

  Case                        Allocated  GCs
  pollEvent + drawColor 1         2,328    0
  pollEvent + drawColor 10        3,840    0
  pollEvent + drawColor 100       4,008    0
  pollEvent + drawColor 1000     10,040    0
  pollEvent + drawColor 2000      3,840    0

pollEvent+drawRect

  Case                       Allocated  GCs
  pollEvent + drawRect 1         2,328    0
  pollEvent + drawRect 10        3,672    0
  pollEvent + drawRect 100       3,840    0
  pollEvent + drawRect 1000      3,840    0

animated rect

  Case                Allocated  GCs
  animated rect 1         2,328    0
  animated rect 10        4,408    0
  animated rect 100       9,816    0
  animated rect 1000     60,520    0
  animated rect 2000    116,416    0

animated rects

  Case                 Allocated  GCs
  animated rects 1         2,792    0
  animated rects 10        4,136    0
  animated rects 100       4,136    0
  animated rects 1000      4,136    0
  animated rects 2000      4,136    0
  animated rects 3000      4,136    0

Check problems:
  /pollEvent+clear/pollEvent + clear 10
    Allocated >3KB! Allocations should be constant.
  /pollEvent+clear/pollEvent + clear 100
    Allocated >3KB! Allocations should be constant.
  /pollEvent+clear/pollEvent + clear 1000
    Allocated >3KB! Allocations should be constant.
  /pollEvent+clear/pollEvent + clear 10000
    Allocated >3KB! Allocations should be constant.
  /pollEvent+present/pollEvent + present 100
    Allocated >4KB! Allocations should be constant.
  /pollEvent+present/pollEvent + present 1000
    Allocated >4KB! Allocations should be constant.
  /pollEvent+drawColor/pollEvent + drawColor 100
    Allocated >KB! Allocations should be constant.
  /pollEvent+drawColor/pollEvent + drawColor 1000
    Allocated >KB! Allocations should be constant.
  /animated rect/animated rect 10
    Allocated >4KB! Allocations should be constant.
  /animated rect/animated rect 100
    Allocated >4KB! Allocations should be constant.
  /animated rect/animated rect 1000
    Allocated >4KB! Allocations should be constant.
  /animated rect/animated rect 2000
    Allocated >4KB! Allocations should be constant.
Test suite sdl-space: FAIL
Test suite logged to: dist/test/sdl2-2.4.1.0-sdl-space.log
ocharles commented 6 years ago

Which compiler?

typetetris commented 6 years ago

ghc-8.4.3 on nixos

dpwiz commented 2 years ago

I just checked and the numbers are stable under 5K. Not nixos though..