Skip to content

Commit

Permalink
remove benchmarks (moved to https://gitlab.com/randy408/png_bench)
Browse files Browse the repository at this point in the history
  • Loading branch information
randy408 committed Dec 10, 2018
1 parent df82205 commit 69e2f85
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 129 deletions.
19 changes: 7 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,18 +89,13 @@ ninja test

## Benchmarking

Benchmarking is done with [png_bench](https://gitlab.com/randy408/png_bench).

```
# Run in source directory
git checkout tags/v0.4.1
wget https://gitlab.com/randy408/libspng/snippets/1786557/raw -O v041_opt.patch
git apply v041_opt.patch
git clone https://gitlab.com/randy408/benchmark_images.git
cd benchmark_images;
git checkout tags/v0.4.0
cd ../build
meson configure -Ddev_build=true -Dbuildtype=release -Db_pgo=generate
ninja benchmark
meson configure -Db_pgo=use
git clone https://gitlab.com/randy408/png_bench.git
cd png_bench
meson -Dbuildtype=release build
cd build
ninja benchmark
cat meson-logs/benchmarklog.txt
```
```
2 changes: 1 addition & 1 deletion meson_options.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
option('dev_build', type : 'boolean', value : false, description : 'Enable benchmarks and tests, requires libpng')
option('dev_build', type : 'boolean', value : false, description : 'Enable the testsuite, requires libpng')
103 changes: 0 additions & 103 deletions tests/benchmark.c

This file was deleted.

13 changes: 0 additions & 13 deletions tests/meson.build
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
png_dep = dependency('libpng', version : '>=1.6.0')

bench = executable('bench', 'benchmark.c',
link_with: lib,
include_directories : include,
dependencies : [ zlib_dep, png_dep ],
override_options : [ 'c_std=c11' ])

benchmark('benchmark', bench, args: ['../benchmark_images/large_rgb8.png'])
benchmark('benchmark', bench, args: ['../benchmark_images/large_rgba8.png'])
benchmark('benchmark', bench, args: ['../benchmark_images/medium_rgb8.png'])
benchmark('benchmark', bench, args: ['../benchmark_images/medium_rgba8.png'])
benchmark('benchmark', bench, args: ['../benchmark_images/small_rgb8.png'])
benchmark('benchmark', bench, args: ['../benchmark_images/small_rgba8.png'])

test_exe = executable('testsuite',
'testsuite.c',
link_with : lib,
Expand Down

0 comments on commit 69e2f85

Please sign in to comment.