Commit Graph

64 Commits

Author SHA1 Message Date
Adithya Kumar
7830df9314 Add simple bench suite for Unicode.Utf8 2021-07-30 19:01:54 +05:30
Harendra Kumar
6157069edd Create a release ci suite 2021-07-29 12:31:11 +05:30
Harendra Kumar
bd451ec7ed Add an example, remove unused code 2021-07-29 02:15:46 +05:30
Harendra Kumar
2b8c70bfac Refactor and improve error reporting 2021-07-29 02:15:46 +05:30
Harendra Kumar
0cbcf0b4ab Factor out targets.sh to be used in test.sh as well 2021-07-29 02:12:40 +05:30
Harendra Kumar
cffe01216b Move the bench-runner script to bench-report pkg 2021-07-29 02:12:40 +05:30
Harendra Kumar
ac3ed9a197 Move the generic bench runner scripts to bench-report 2021-07-29 02:12:40 +05:30
Harendra Kumar
1a17e2db4b Create a bench-runner wrapper that uses bench-config
Consolidate the specific customizations to bench-config.sh.

Integrate bench-exec-one.sh into the main bench.sh script. After the
gauge/tasty unification changes, we do not have a requirement for a
separate executable now.

Now we can push the generic part of the script to the benchmark/bench-report
package. And that package can be reused by streaming-benchmarks as well.
We can make that as a submodule.

Ultimately we should be converting these shell scripts to Haskell.
2021-07-29 02:12:40 +05:30
Harendra Kumar
2ab247b559 Refactor to make it more generic
So that it can be reused in streaming-benchmarks package too.

Also add comparison option to compare the set of benchmarks provided on
the command line.
2021-07-29 02:12:40 +05:30
Harendra Kumar
4f629b8cb3 Bump the version to 0.8.0 2021-06-24 13:37:10 +05:30
Harendra Kumar
f5470713c2 Update CI test matrix requirements and the script
Also, fix a few test issues to make the CIs work.
2021-06-22 22:54:41 +05:30
Harendra Kumar
b14e43a187 Increase stack size for array foldable instance 2021-06-22 22:50:12 +05:30
Harendra Kumar
424f1e9871 Fix the space requirements of two benchmarks
Move showInstance benchmark for pure streams to o-n-space
Increase the heap space for array map x 4
2021-06-22 22:50:12 +05:30
Harendra Kumar
595331343a Update cabal/nix build code for bench-report 2021-06-17 17:08:05 +05:30
Ranjeet Kumar Ranjan
8fd51b2a37 Seperate chart build from benchmarks
Add extra-source-files to streamly.cabal

Fix review comments

Rename Chart.hs to BenchReport.hs

Fix extra-source-files

Remove no-charts flag
2021-06-17 17:08:05 +05:30
Harendra Kumar
f2b2aa4154 Refactor coverage report code 2021-06-15 17:53:20 +05:30
Harendra Kumar
3feeec2e8e Check for GNU awk 2021-06-08 23:54:04 +05:30
Harendra Kumar
cc198c5b8d Fix gauge benchmark name matching 2021-06-08 23:54:04 +05:30
Harendra Kumar
9a98ee00d5 Bump the heap limit for tasty-bench
For Data.Array/o-1-space/generation/show and similar benchmarks.
2021-06-08 23:54:04 +05:30
Harendra Kumar
5537b0bfc2 Add --sort-by-name flag
To sort the benchmarks by name instead of sorting them by field value or
percent diff.
2021-06-08 23:54:04 +05:30
Harendra Kumar
edbb7b8010 Fix error handling, use pipefail
* Also, fix --prefix not working due to missing ";"
* Fix correct benchmark name to be printed
2021-06-08 23:54:04 +05:30
Harendra Kumar
b0fdda43d5 Fix missing benchmarks 2021-06-08 23:54:04 +05:30
Harendra Kumar
03218ad71b Cleanup, fix issues in bench.sh 2021-06-08 23:54:04 +05:30
Ranjeet Kumar Ranjan
b68baf3c51 Add support for benchmarking with tasty-bench
tasty-bench has fewer dependencies and is agile to keep up with new GHC
versions. This change is especially motivated by support for GHC 9.0.1.
gauge depends on foundation/basement which lagging much behind and seem
to be unmaintained.
2021-06-08 23:54:04 +05:30
Harendra Kumar
a7ba0701ec Add a hack to find "chart" executable
We can always use the chart executable built by any compiler version.
Sometimes the chart executable is not buildable by newer compiler
versions, in that case we can build it using another compiler and use
that.
2021-04-26 12:21:10 +05:30
Adithya Kumar
4f556e8b4d Make Parser initial of type Initial 2021-03-05 03:04:35 +05:30
Harendra Kumar
f32a16628e Fix syntax error due to bad comment 2021-03-05 01:47:02 +05:30
Harendra Kumar
37562825e9 Increase stack limit of sum-product-fold for GHC-9.0 2021-03-04 18:25:45 +05:30
Harendra Kumar
3c428a1139 Fix --help command for run-ci.sh 2021-02-20 09:55:41 +05:30
Harendra Kumar
1a51cab61a Add a script to run CIs locally using nix/packcheck 2021-02-18 18:18:35 +05:30
Harendra Kumar
d2d0e16d53 Add a ghc wrapper to invoke ghc on individual files
With all the extensions used in streamly, optimization options and
ddump-simpl options.

This is useful for compiling standalone files, when inspecting core for
perf issues.  I wish cabal could invoke ghc with environment from the
cabal file. Can it?
2021-02-15 15:41:05 +05:30
Harendra Kumar
cdccb78b7e Add support for --with-compiler 2021-02-10 19:19:53 +05:30
Harendra Kumar
6c02648b7d Use fusion-plugin by default 2021-02-10 18:49:58 +05:30
Harendra Kumar
d1ab6e59d6 Rename cabal-build-flags to cabal-build-options 2021-02-10 18:49:58 +05:30
Harendra Kumar
2131682e9a Update bin/test.sh cli help, add it to test/README.md 2021-02-10 02:00:33 +05:30
Pranay Sashank
5c018c7e45 Rename Data.Array.Storable.Foreign to Data.Array.Foreign.
Closes #854.
2021-02-01 21:31:06 +05:30
Harendra Kumar
e38dba9d8a Update stack limits for Prelude.Rate, Prelude.Ahead 2021-01-27 19:08:13 +05:30
Harendra Kumar
6a33a88980 Increase time-limit from 0 to 0.01
In the "reverse'" benchmark the GC stats were showing as 0 because no
GC occurred in 1 iteration.
2021-01-27 19:08:13 +05:30
Anurag Hooda
c671f2e850 fix some stack space overflows 2021-01-08 00:44:25 +05:30
Harendra Kumar
00a2f7b1f5 Use a basePort var, rename test, add to targets.sh
fix hlint
small cleanups
2021-01-04 02:30:20 +05:30
Harendra Kumar
c3b506b68b Refactor, cleanup, hlint - fold and handle tests 2021-01-04 01:26:39 +05:30
Harendra Kumar
c0065208f2 Fix reporting, use only existing files in hpc report 2021-01-01 00:26:49 +05:30
Harendra Kumar
a5a6efc83a Remove empty tix dirs
To make hpc-coveralls work, because it expects a tix file in all dirs.
2021-01-01 00:26:49 +05:30
Harendra Kumar
a1111f33b2 Remove redundant echo output 2020-12-31 01:12:50 +05:30
Harendra Kumar
76eea18dba Initialize COVERAGE with a valid value
Otherwise comparisons in conditions fail.
2020-12-31 01:12:50 +05:30
Harendra Kumar
0c29627667 Fix target groups not working correctly
RUNNING_BENCHMARKS/RUNNING_TESTS variables were getting cleared up by
set_common_vars. Also, all_grp is a function and should be treated
differently than variables.
2020-12-30 20:42:50 +05:30
Harendra Kumar
f25a1dd28e Use test.sh to generate coverage info
cabal does not work with coverage when tests are in a different package.
2020-12-28 23:56:18 +05:30
Harendra Kumar
002551e55f Support hpc-coveralls for coverage upload 2020-12-28 23:56:18 +05:30
Harendra Kumar
4dc01677c7 Add coverage option to test.sh script 2020-12-28 23:56:18 +05:30
Harendra Kumar
f6d05d3f52 Refactor bench.sh to use build-lib.sh 2020-12-28 23:56:18 +05:30