diff --git a/db_tools/create_view.sql b/db_tools/create_view.sql new file mode 100644 index 0000000..bea9518 --- /dev/null +++ b/db_tools/create_view.sql @@ -0,0 +1,16 @@ +CREATE OR REPLACE VIEW torchmlir_benchmark_view AS +SELECT + id, + REPLACE(REPLACE(CONCAT(host, '-', compiler, '-', dtype, '-', tag), 'torchscript', 'ts'), '-ci', '') AS backend, + host, + device, + compiler, + dtype, + tag, + benchmark, + benchmark_desc, + samples_per_s AS items_per_s, + flops_per_sample, + flops_per_sample * samples_per_s / 1e12 AS tflops, + date +FROM torchmlir_benchmark;