mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-09 21:22:26 +03:00
32 lines
1.3 KiB
Markdown
32 lines
1.3 KiB
Markdown
# EXAMPLES
|
|
|
|
## Collected examples
|
|
|
|
Many example input files in journal and other formats can be found
|
|
in `examples/` in the `hledger` repo.
|
|
|
|
## Sample journals
|
|
|
|
Synthetic data files like `examples/100x100x10.journal` are useful for benchmarks and testing.
|
|
The numbers describe the number of transactions, number of accounts, and maximum account depth respectively.
|
|
They are generated by [`tools/generatejournal.hs`](https://github.com/simonmichael/hledger/blob/master/tools/generatejournal.hs).
|
|
They should get built automatically as needed, if not you can use `make samplejournals`:
|
|
|
|
```shell
|
|
$ make samplejournals
|
|
ghc tools/generatejournal.hs
|
|
[1 of 1] Compiling Main ( tools/generatejournal.hs, tools/generatejournal.o )
|
|
Linking tools/generatejournal ...
|
|
tools/generatejournal 100 100 10 >examples/100x100x10.journal
|
|
tools/generatejournal 1000 1000 10 >examples/1000x1000x10.journal
|
|
tools/generatejournal 1000 10000 10 >examples/1000x10000x10.journal
|
|
tools/generatejournal 10000 1000 10 >examples/10000x1000x10.journal
|
|
tools/generatejournal 10000 10000 10 >examples/10000x10000x10.journal
|
|
tools/generatejournal 100000 1000 10 >examples/100000x1000x10.journal
|
|
tools/generatejournal 3 5 5 >examples/ascii.journal
|
|
tools/generatejournal 3 5 5 --chinese >examples/chinese.journal
|
|
tools/generatejournal 3 5 5 --mixed >examples/mixed.journal
|
|
```
|
|
|
|
|