]> Nishi Git Mirror - gwion.git/commitdiff
Move benchmarks to a submodule
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Fri, 18 Sep 2020 04:02:10 +0000 (06:02 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Fri, 18 Sep 2020 04:02:10 +0000 (06:02 +0200)
.gitmodules [new file with mode: 0644]
docs/Benchmarks.mdr
gwion-benchmark [new submodule]
scripts/list_benchmarks.sh [new file with mode: 0644]

diff --git a/.gitmodules b/.gitmodules
new file mode 100644 (file)
index 0000000..a2301c9
--- /dev/null
@@ -0,0 +1,3 @@
+[submodule "gwion-benchmark"]
+       path = gwion-benchmark
+       url = https://github.com/fennecdjay/gwion-benchmark
index 1c8cfd265e777f74dd15e898404e5720a949d854..1f2e61896b4fc60547b20457e0bbeeb3410ca563 100644 (file)
@@ -2,5 +2,5 @@
 
 ## test
 <table><tr><td align="center">
-@hide for a in $(find benchmark/results -type f -name "*.png"); do echo "<a href=:gwion:><img class=\"zoom\" src=\"./$(echo "$a" | sed 's/benchmark\/results/assets/')\" width=\"352px\"></a>"; done
+@hide bash scripts/list_benchmarks.sh
 </td></tr></table>
diff --git a/gwion-benchmark b/gwion-benchmark
new file mode 160000 (submodule)
index 0000000..1cf2cf3
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 1cf2cf3600dac43c02ca16a209d46e2ce5d33dfc
diff --git a/scripts/list_benchmarks.sh b/scripts/list_benchmarks.sh
new file mode 100644 (file)
index 0000000..ac15990
--- /dev/null
@@ -0,0 +1,6 @@
+for a in $(find gwion-benchmark/png -type f -name "*.png")
+do
+  png_url="https://github.com/fennecdjay/gwion-benchmark/blob/results/png/$(basename $a)"
+  test_url="https://github.com/fennecdjay/gwion-benchmark/blob/master/src/$(basename $a .png).gw"
+  echo "<a href=\"$test_url\"><img class=\"zoom\" src=\"$png_url\" width=\"352px\"></a>"
+done