summaryrefslogtreecommitdiff
path: root/benchmark/benchmark-pandoc.hs
AgeCommit message (Collapse)Author
2023-12-10Benchmark: use standalone documents for reader tests.John MacFarlane
Otherwise typst reader test fails. Note: this means that we are now parsing longer documents, so bench results on readers won't be comparable to before.
2023-01-10Update copyright years, it's 2023!Albert Krewinkel
2022-10-13Got benchmarks compiling with new API.John MacFarlane
2022-01-02Copyright notices: update for 2022Albert Krewinkel
2021-03-17Benchmark improvements.John MacFarlane
* Build `+RTS -A256m -RTS` into default ghc-options for benchmark, so we don't have to specify this separately on the command line. This is necessary to get accurate benchmark results; otherwise we are largely measuring garbage collecting, some not related to the current benchmark. * Switch back from gauge to tasty-bench. * Allow specifying BASELINE file in 'make bench' for comparison (otherwise the latest is chosen by default). * Remove obsolete reference to weigh-pandoc from CONTRIBUTING.md. * Remove `-Rghc-timing` from 'make bench'.
2021-03-16Increase heap space in runtime for benchmarks.John MacFarlane
Otherwise we're essentially benchmarking garbage collecting, which can give very inconsistent results.
2021-03-15Switch to gauge for now for benchmarks.John MacFarlane
tasty-bench is displaying odd behavior, with different timings depending on the `--pattern` specified.
2021-03-15Force readFile in benchmarks earlyBodigrim
2021-02-20Benchmark improvements.John MacFarlane
+ Run writer benchmarks for binary formats too. + Alphabetize benchmarks. + Don't run benchmarks for bibliography formats (yet; we need a special input for them).
2021-02-13Clean up benchmark code.John MacFarlane
Now we can do patterns using `-p blah'.
2021-02-07Avoid unnecessary use of NoImplicitPrelude pragma (#7089)Albert Krewinkel
2021-02-02Remove superfluous importJohn MacFarlane
2021-01-30Use tasty-bench instead of criterion for benchmarks.John MacFarlane
It is much lighter-weight.
2021-01-08Update copyright notices for 2021 (#7012)Albert Krewinkel
2020-07-07[Bench] Benchmark bytestring readersNikolay Yakimov
2019-11-12Switch to new pandoc-types and use Text instead of String [API change].despresc
PR #5884. + Use pandoc-types 1.20 and texmath 0.12. + Text is now used instead of String, with a few exceptions. + In the MediaBag module, some of the types using Strings were switched to use FilePath instead (not Text). + In the Parsing module, new parsers `manyChar`, `many1Char`, `manyTillChar`, `many1TillChar`, `many1Till`, `manyUntil`, `mantyUntilChar` have been added: these are like their unsuffixed counterparts but pack some or all of their output. + `glob` in Text.Pandoc.Class still takes String since it seems to be intended as an interface to Glob, which uses strings. It seems to be used only once in the package, in the EPUB writer, so that is not hard to change.
2019-09-29Fix benchmarks so they compile again.John MacFarlane
2019-08-25Got benchmarks working with ipynb.John MacFarlane
2019-02-04Add missing copyright notices and remove license boilerplate (#5112)Albert Krewinkel
Quite a few modules were missing copyright notices. This commit adds copyright notices everywhere via haddock module headers. The old license boilerplate comment is redundant with this and has been removed. Update copyright years to 2019. Closes #4592.
2018-10-13Update benchmarks for ghc 8.6.1.John MacFarlane
2018-03-18Added Prelude imports to sources in benchmark and trypandoc.John MacFarlane
2018-01-05Update copyright notices to include 2018Albert Krewinkel
2017-12-30Improve benchmarks.John MacFarlane
Previously we weren't setting the default extensions properly, so e.g. 'markdown' wasn't being tested with pandoc markdown extensions.
2017-12-30Improved benchmark argument parsing.John MacFarlane
You can now say 'make bench BENCHARGS="markdown latex reader"' and both the markdown and latex readers will be benchmarked.
2017-12-28Remove redundant import.John MacFarlane
2017-12-28Revised benchmark so it doesn't use FileTree constructor.John MacFarlane
2017-10-29Fixed warnings.John MacFarlane
2017-10-26update years in copyrightKolen Cheung
2017-06-19Fixed name shadowing in benchmark.John MacFarlane
2017-06-11Removed redundant import.John MacFarlane
2017-06-11Switched Writer types to use Text.John MacFarlane
* XML.toEntities: changed type to Text -> Text. * Shared.tabFilter -- fixed so it strips out CRs as before. * Modified writers to take Text. * Updated tests, benchmarks, trypandoc. [API change] Closes #3731.
2017-06-10Fixed benchmark to work with Text readers.John MacFarlane
2017-02-25Fix stale references to `tests` directory (#3469)Or Neeman
Some of the benchmarks were failing due to references to files in the `tests` directory, which is now called `test`. A search found other references to it also. This commit updates all these references.
2017-01-27benchmark: allow benchmark arguments.John MacFarlane
These pattern match: so, '--benchmark-arguments "markdown reader"' will only benchmark the markdown reader; with just "markdown" it will do the writer too; with no arguments all benchmarks are run.
2017-01-27Fix up benchmarks so they compile.John MacFarlane
2017-01-25Fixed up weigh-pandoc and benchmark-pandoc so they build.John MacFarlane
2016-11-30Removed unused import.John MacFarlane
2015-12-14Fixed benchmark for new API.John MacFarlane
2015-11-09Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly."John MacFarlane
This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b.
2015-11-08Use -XNoImplicitPrelude and 'import Prelude' explicitly.John MacFarlane
This is needed for ghci to work with pandoc, given that we now use a custom prelude. Closes #2503.
2015-10-14Use custom Prelude to avoid compiler warnings.John MacFarlane
- The (non-exported) prelude is in prelude/Prelude.hs. - It exports Monoid and Applicative, like base 4.8 prelude, but works with older base versions. - It exports (<>) for mappend. - It hides 'catch' on older base versions. This allows us to remove many imports of Data.Monoid and Control.Applicative, and remove Text.Pandoc.Compat.Monoid. It should allow us to use -Wall again for ghc 7.10.
2015-10-09Removed unneeded imports in benchmark program.John MacFarlane
2015-10-09Updated benchmark program.John MacFarlane
2015-10-09benchmark: Use Criterion.Monad not Criterion.Config.John MacFarlane
2015-03-30benchmark - removed kludge we needed before CommonMark writer.John MacFarlane
2015-03-28Merge branch 'errortype' of https://github.com/mpickering/pandoc into ↵John MacFarlane
mpickering-errortype Conflicts: benchmark/benchmark-pandoc.hs src/Text/Pandoc/Readers/Markdown.hs src/Text/Pandoc/Readers/Org.hs src/Text/Pandoc/Readers/RST.hs tests/Tests/Readers/LaTeX.hs
2015-03-17Added CommonMark reader using cmark (libcmark bindings).John MacFarlane
- Added commonmark as an input format. - Added `Text.Pandoc.Readers.CommonMark.readCommonMark`. - For now, we use the markdown writer to generate benchmark text for the CommonMark reader. We can change this when we get a writer.
2015-02-18Update benchmarksMatthew Pickering
2014-08-01benchmark: use only test suite for benchmark.John MacFarlane
This way the benchmarks don't take so long to run.
2014-08-01Use nfIO in benchmark instead of getLength trick.John MacFarlane