You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pydef py_sin(s:int) ->float:
"sinus function : example loading module, handling input/output as strings"
import math as py_math
return ( py_math.sin(s*1));
WITH RECURSIVE
cnt(x) AS (
SELECT 1
UNION ALL
SELECT x+1 FROM cnt
where x < 300000
)
select sum(py_sin(x)) from cnt
takes 130 seconds, while 0.4 seconds with SQLite
WITH RECURSIVE
cnt(x) AS (
SELECT 1
UNION ALL
SELECT x+1 FROM cnt
where x < 300000
)
select sum(sin(x)) from cnt
takes also 110 seconds, while 0.1 second with SQLite integrated math
The text was updated successfully, but these errors were encountered:
pydef py_sin(s:int) ->float:
"sinus function : example loading module, handling input/output as strings"
import math as py_math
return ( py_math.sin(s*1));
WITH
cnt(x) AS (
SELECT * from generate_series (1, 30000 )
)
select sum(py_sin(x)) from cnt
`````
This takes 0.1 second to duckdb
`````
WITH cnt(x) AS (select * from generate_series(1, 3000000) )
select sum(sin(x)) from cnt ;
````
with duckdb-0.8.0
takes 130 seconds, while 0.4 seconds with SQLite
takes also 110 seconds, while 0.1 second with SQLite integrated math
The text was updated successfully, but these errors were encountered: