CMSIS-DSP: Improved sql scripts for testing framework.

pull/19/head
Christophe Favergeon 6 years ago
parent 5019309f9c
commit d5bf828234

@ -42,22 +42,22 @@ If we want to compute ratio between CORE AND PLATFORM then the view above should
be using CORE AND PLATFORM to filter and define the references. be using CORE AND PLATFORM to filter and define the references.
*/ */
select temp.otherCores.ID as ID, select otherCores.ID as ID,
CATEGORY.category as CATEGORY, CATEGORY.category as CATEGORY,
temp.otherCores.NAME as NAME, otherCores.NAME as NAME,
(1.0*refCore.MAX / otherCores.MAX) as MAXRATIO,
(1.0*refCore.MAXREGCOEF / otherCores.MAXREGCOEF) as REGRESSIONRATIO,
PLATFORM.platform as PLATFORM, PLATFORM.platform as PLATFORM,
CORE.core as CORE, CORE.core as CORE,
COMPILERKIND.compiler as COMPILER, COMPILERKIND.compiler as COMPILER,
COMPILER.version as COMPILERVERSION, COMPILER.version as COMPILERVERSION,
TYPE.type as TYPE, TYPE.type as TYPE,
temp.otherCores.DATE as DATE, otherCores.DATE as DATE
(1.0*temp.refCore.MAX / temp.otherCores.MAX) as MAXRATIO, from otherCores
(1.0*temp.refCore.MAXREGCOEF / temp.otherCores.MAXREGCOEF) as REGRESSIONRATIO INNER JOIN refCore ON refCore.ID = otherCores.ID AND refCore.categoryid = otherCores.categoryid AND refCore.NAME = otherCores.NAME
from temp.otherCores INNER JOIN CATEGORY ON CATEGORY.categoryid = otherCores.categoryid
INNER JOIN temp.refCore USING(ID,categoryid,NAME) INNER JOIN PLATFORM ON PLATFORM.platformid = otherCores.platformid
INNER JOIN CATEGORY USING(categoryid) INNER JOIN CORE ON CORE.coreid = otherCores.coreid
INNER JOIN PLATFORM USING(platformid) INNER JOIN COMPILER ON COMPILER.compilerid = otherCores.compilerid
INNER JOIN CORE USING(coreid) INNER JOIN COMPILERKIND ON COMPILERKIND.compilerkindid = COMPILER.compilerkindid
INNER JOIN COMPILER USING(compilerid) INNER JOIN TYPE ON TYPE.typeid = otherCores.typeid;
INNER JOIN COMPILERKIND USING(compilerkindid)
INNER JOIN TYPE USING(typeid)

@ -38,6 +38,13 @@ Get last values
*/ */
/*
Better to use the ON syntax than the USING syntax.
See diff.sql for example
*/
select NB,CATEGORY.category,NAME,CYCLES,PLATFORM.platform,CORE.core,COMPILERKIND.compiler,COMPILER.version,DATE select NB,CATEGORY.category,NAME,CYCLES,PLATFORM.platform,CORE.core,COMPILERKIND.compiler,COMPILER.version,DATE
from BasicBenchmarks from BasicBenchmarks
INNER JOIN CATEGORY USING(categoryid) INNER JOIN CATEGORY USING(categoryid)

Loading…
Cancel
Save