diff options
Diffstat (limited to 'mysql-test/t/bench_count_distinct.test')
| -rw-r--r-- | mysql-test/t/bench_count_distinct.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/t/bench_count_distinct.test b/mysql-test/t/bench_count_distinct.test new file mode 100644 index 00000000000..20d80ff74a1 --- /dev/null +++ b/mysql-test/t/bench_count_distinct.test @@ -0,0 +1,12 @@ +drop table if exists t1; +create table t1(n int not null, key(n)); +let $1=10000; +while ($1) +{ + eval insert into t1 values($1); + eval insert into t1 values($1); + dec $1; +} + +select count(distinct n) from t1; +drop table t1; |
