Skip to content

Demo repo showing a slowdown when collapsing an if statement.

Notifications You must be signed in to change notification settings

ClementTsang/collapse_if_slowdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

collapse_if_slowdown

Created as a demo repo for this issue.

Run the benchmarks using something like (at least on Linux):

cargo bench 2> /dev/null

We dump stderr as the test functions write to there, so you might get spammed with messages otherwise.

Benchmark results

Results on my machine (Ryzen 5700x, 32GiB of RAM):

slow                    time:   [7.7474 ms 7.8033 ms 7.8992 ms]
fast                    time:   [363.49 µs 368.44 µs 374.35 µs]

About

Demo repo showing a slowdown when collapsing an if statement.

Resources

Stars

Watchers

Forks

Languages