Commit Graph

12 Commits

Author SHA1 Message Date
Erik Svedäng
a9fd73ab2a Load 'Debug.carp' by default. 2018-03-13 09:43:08 +01:00
Erik Svedäng
a83d343a98 Optimized 'Array.subarray', 3.90575s -> 25.046ms for taking the first half of an array of 10k ints. 2018-03-11 14:30:38 +01:00
Erik Svedäng
f3b55e7937 Optimized Array.aupdate from 5.93691s to 2.75493s for array of 1000000 ints. 2018-03-11 13:56:07 +01:00
Erik Svedäng
c83f03d2bc Added benchmark for mutating version of 'swap' ('swap!') for comparison. 2018-03-11 10:44:02 +01:00
Erik Svedäng
ff6852d839 Changed signature of Array.swap. Optimized from 2.66486s -> 1.32265s for 1000000 Int elements. 2018-03-11 10:38:24 +01:00
Erik Svedäng
8da3aed90a Benchmark for swapping two elements in array. 2018-03-11 10:33:02 +01:00
Erik Svedäng
8059bb3c45 Fixed bug in Bench.carp where a value was used outside of its stack scope. 2018-03-07 15:20:44 +01:00
Erik Svedäng
e4978d5a96 Optimization works. 2018-03-07 12:03:59 +01:00
Erik Svedäng
20a98ba617 Created benchmark for array resizing.
Current results:
Grow and shrink
Total time elapsed: 4.36765s
Best case: 5.96502ms
Worst case: 6.73454ms
Standard deviation: 73.8287µs
2018-03-07 10:58:36 +01:00
Erik Svedäng
2759fe9498 A script for running all benchmarks. 2018-02-06 09:02:46 +01:00
hellerve
b3b64d9cd9 bench: add structs benchmark 2018-01-25 17:37:30 +01:00
hellerve
9a3b0e5f59 bench: added first bits of benchmarking 2018-01-25 17:26:20 +01:00