npm i
- run
npm test
use ab -c50 -n10000 'http://localhost:3000/canvas/text'
test shouldn't crash but memory leak is observable in activity monitor / task manager, even after load ends, memory isn't freed
-
lineTo
- useab -c50 -n10000 'http://localhost:3000/canvas/encode?test=line'
-
arc
- useab -c50 -n10000 'http://localhost:3000/canvas/encode?test=arc'
-
bezier
- useab -c50 -n10000 'http://localhost:3000/canvas/encode?test=bezier'
-
rect
- useab -c50 -n10000 'http://localhost:3000/canvas/encode?test=rect'
test would crash with segmentation error, if lineTo test is run with lower load, it might not crash but can produce memory leak which which stay after load ends