Erik Svedäng
470f0f827d
fix: Unify aupdate and aupdate! with other update functions ( #1220 )
...
* chore: Re-format Haskell code
* fix: Unify aupdate and aupdate! with other update functions
* fix: Re-add comment
* fix: Also make StaticArray.aupdate! adhere to the normal update signature
* fix: Failing test
2021-05-25 12:11:31 +02:00
Veit Heller
5ad1d227f3
Add automatic map resizing ( #1071 )
...
* core: add map resizing
* add set resizing
* do not shrink if under dflt-size
2020-12-19 22:20:52 +01:00
Tim Dévé
4971be73f4
Moves scripts in scripts folder
2020-11-09 10:51:11 +00:00
hellerve
ee812b37e6
core: make subarry/substring slice
2020-02-11 09:09:30 +01:00
Jorge Acereda
72f3189f25
Fix map and structs benchmarks.
2019-09-20 23:40:05 +02:00
hellerve
9848e8fb34
multiple fixes:
...
- don’t do function copying in benchmarking
- fix the array_update benchmark
- add Filepath.file-from-path
- add tests for the `Filepath` module
- reformat a lot of documentation
2019-02-15 14:48:49 +01:00
hellerve
c267077df3
bench: add a few map and set benchmarks
2018-08-25 11:19:04 -07:00
Chris Hall
7c1dd210d7
Renaming: String.count -> String.length, Array.count -> Array.length
...
Issue #236
2018-05-23 10:03:42 +10:00
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