should be it
This commit is contained in:
15
external/duckdb/benchmark/micro/cast/strftime.benchmark
vendored
Normal file
15
external/duckdb/benchmark/micro/cast/strftime.benchmark
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# name: benchmark/micro/cast/strftime.benchmark
|
||||
# description: Use strftime to convert dates to strings
|
||||
# group: [cast]
|
||||
|
||||
name StrfTime for DATE -> STRING
|
||||
group cast
|
||||
|
||||
load
|
||||
CREATE TABLE dates AS SELECT DATE '1992-01-01' + i::INTEGER AS d FROM range(0, 10000000) tbl(i);
|
||||
|
||||
run
|
||||
SELECT MIN(strftime(d, '%Y/%m/%d')) FROM dates
|
||||
|
||||
result I
|
||||
10000/01/01
|
||||
Reference in New Issue
Block a user