Commit Graph

137 Commits

Author SHA1 Message Date
Jan Mercl
8ee5bd03d8 volatile: regenerate all targetets, updates #43
Solving the date race rooted in testfixture comes with a price tag on
some benchmarks. The separation of test and production builds has to be
reconsidered probably.

benchmark                                           old ns/op      new ns/op      delta
BenchmarkInsertComparative/sqliteOnDisk1e2-24       1895381        9582508        +405.57%
BenchmarkInsertComparative/sqliteOnDisk1e3-24       5335603        23483554       +340.13%
BenchmarkInsertComparative/sqliteOnDisk1e4-24       41443434       62321908       +50.38%
BenchmarkReading1/sqliteInMemory1e1-24              4164           3954           -5.04%
BenchmarkReading1/sqliteOnDisk1e5-24                41833294       40412312       -3.40%
BenchmarkInsertComparative/sqliteOnDisk1e5-24       409706232      423913432      +3.47%
BenchmarkInsertComparative/sqliteInMemory1e3-24     4038611        4121762        +2.06%
BenchmarkReading1/sqliteOnDisk1e2-24                35478          34835          -1.81%
BenchmarkInsertComparative/sqliteInMemory1e5-24     393955115      400514447      +1.66%
BenchmarkInsertComparative/sqliteOnDisk1e6-24       4075058065     4129740614     +1.34%
BenchmarkReading1/sqliteOnDisk1e6-24                420696738      425759864      +1.20%
BenchmarkInsertComparative/sqliteInMemory1e6-24     4061846465     4025592721     -0.89%
BenchmarkInsertComparative/sqliteOnDisk1e1-24       1374103        1363824        -0.75%
BenchmarkInsertComparative/sqliteInMemory1e1-24     47396          47134          -0.55%
BenchmarkReading1/sqliteOnDisk1e4-24                4089560        4072859        -0.41%
BenchmarkReading1/sqliteInMemory1e5-24              41018960       41178057       +0.39%
BenchmarkReading1/sqliteInMemory1e3-24              413754         412557         -0.29%
BenchmarkReading1/sqliteOnDisk1e1-24                4105           4116           +0.27%
BenchmarkReading1/sqliteOnDisk1e3-24                406788         407602         +0.20%
BenchmarkReading1/sqliteInMemory1e4-24              4083458        4091301        +0.19%
BenchmarkReading1/sqliteInMemory1e2-24              35648          35586          -0.17%
BenchmarkInsertComparative/sqliteInMemory1e4-24     40525081       40486065       -0.10%
BenchmarkReading1/sqliteInMemory1e6-24              416605953      416801419      +0.05%
BenchmarkInsertComparative/sqliteInMemory1e2-24     418877         419052         +0.04%

benchmark                                           old MB/s       new MB/s       speedup
BenchmarkInsertComparative/sqliteOnDisk1e2-24       52759.83       10435.68       0.20x
BenchmarkInsertComparative/sqliteOnDisk1e3-24       187420.25      42582.99       0.23x
BenchmarkInsertComparative/sqliteOnDisk1e4-24       241292.75      160457.22      0.66x
BenchmarkReading1/sqliteInMemory1e1-24              2401715.49     2528774.04     1.05x
BenchmarkReading1/sqliteOnDisk1e5-24                2390440.47     2474493.44     1.04x
BenchmarkInsertComparative/sqliteOnDisk1e5-24       244077.32      235897.22      0.97x
BenchmarkInsertComparative/sqliteInMemory1e3-24     247609.90      242614.72      0.98x
BenchmarkReading1/sqliteOnDisk1e2-24                2818677.25     2870644.72     1.02x
BenchmarkInsertComparative/sqliteInMemory1e5-24     253836.02      249678.88      0.98x
BenchmarkInsertComparative/sqliteOnDisk1e6-24       245395.28      242145.96      0.99x
BenchmarkReading1/sqliteOnDisk1e6-24                2377009.16     2348741.82     0.99x
BenchmarkInsertComparative/sqliteInMemory1e6-24     246193.45      248410.62      1.01x
BenchmarkInsertComparative/sqliteOnDisk1e1-24       7277.47        7332.32        1.01x
BenchmarkInsertComparative/sqliteInMemory1e1-24     210986.33      212161.04      1.01x
BenchmarkReading1/sqliteOnDisk1e4-24                2445250.84     2455277.48     1.00x
BenchmarkReading1/sqliteInMemory1e5-24              2437897.03     2428477.88     1.00x
BenchmarkReading1/sqliteInMemory1e3-24              2416893.93     2423908.77     1.00x
BenchmarkReading1/sqliteOnDisk1e1-24                2435771.89     2429343.61     1.00x
BenchmarkReading1/sqliteOnDisk1e3-24                2458284.16     2453375.13     1.00x
BenchmarkReading1/sqliteInMemory1e4-24              2448904.99     2444210.29     1.00x
BenchmarkReading1/sqliteInMemory1e2-24              2805169.43     2810106.83     1.00x
BenchmarkInsertComparative/sqliteInMemory1e4-24     246760.76      246998.56      1.00x
BenchmarkReading1/sqliteInMemory1e6-24              2400349.76     2399224.08     1.00x
BenchmarkInsertComparative/sqliteInMemory1e2-24     238733.61      238633.69      1.00x

benchmark                                           old allocs     new allocs     delta
BenchmarkInsertComparative/sqliteInMemory1e6-24     6999753        6999749        -0.00%
BenchmarkInsertComparative/sqliteOnDisk1e6-24       6999762        6999761        -0.00%

benchmark                                           old bytes     new bytes     delta
BenchmarkInsertComparative/sqliteOnDisk1e2-24       12960         12962         +0.02%
BenchmarkReading1/sqliteInMemory1e4-24              156432        156440        +0.01%
BenchmarkInsertComparative/sqliteInMemory1e6-24     136003776     135998736     -0.00%
BenchmarkInsertComparative/sqliteOnDisk1e3-24       134113        134115        +0.00%
BenchmarkReading1/sqliteOnDisk1e5-24                1596446       1596438       -0.00%
BenchmarkInsertComparative/sqliteInMemory1e4-24     1358039       1358033       -0.00%
BenchmarkInsertComparative/sqliteOnDisk1e4-24       1358120       1358125       +0.00%
BenchmarkInsertComparative/sqliteOnDisk1e5-24       13598160      13598202      +0.00%
BenchmarkReading1/sqliteOnDisk1e6-24                15996506      15996549      +0.00%
BenchmarkReading1/sqliteInMemory1e6-24              15996504      15996528      +0.00%
BenchmarkInsertComparative/sqliteInMemory1e5-24     13598090      13598074      -0.00%
BenchmarkInsertComparative/sqliteOnDisk1e6-24       135998848     135998800     -0.00%
2021-01-26 20:59:32 +01:00
Jan Mercl
323938a11f linux/amd64: regenerate 2021-01-25 21:51:46 +01:00
Jan Mercl
3c751e6fc6 fix memory leak caused by returning noRows{}/II, updates #43 2021-01-25 13:30:37 +01:00
Jan Mercl
168943b08a fix memory leak caused by returning noRows{}, updates #43 2021-01-25 12:22:10 +01:00
Jan Mercl
ac62cee27c tweak Makefile 2021-01-25 09:24:40 +01:00
Jan Mercl
5e0cb7e925 bump libc,tcl version 2021-01-21 12:20:43 +01:00
Jan Mercl
faa19d3a03 bump libc,tcl version 2021-01-19 14:34:43 +01:00
Dan Peterson
03e5ee98b3 Merge branch 'binding-roundtripping' into 'master'
driver: support ?NNN and $NNN parameters, add tests

See merge request cznic/sqlite!21
2021-01-18 15:25:23 +00:00
Dan Peterson
2d062fa148 driver: support ?NNN and $NNN parameters, add tests
Fix a bug around ensuring each index matches a corresponding
argument.

Support ?NNN parameters by checking for a match between NNN and
Ordinal. Do the same for $NNN even though $NNN should technically
require sql.Named.

Updates https://gitlab.com/cznic/sqlite/-/issues/42.
2021-01-18 11:23:00 -04:00
Jason DeBettencourt
c1357b87cd cleanup get working dir on windows: "echo /c %CD%" -> "/c cd " 2021-01-18 09:59:38 -05:00
Jan Mercl
0a7471a043 Makefile: add regression_check target 2021-01-17 21:34:54 +01:00
Jan Mercl
132978c738 bump libc,tcl version 2021-01-17 11:38:58 +01:00
Jason DeBettencourt
7555a8537c Merge branch 'master' of https://gitlab.com/cznic/sqlite 2021-01-16 13:01:28 -05:00
Jason DeBettencourt
aabaed09c7 get_pwd fix for windows 2021-01-16 13:01:07 -05:00
Jan Mercl
4666409875 fix ccgo_test.build 2021-01-16 18:19:24 +01:00
Jan Mercl
bfeff02653 enable memory auditing in most tests/benchmarks using -tags=libc.memgrind 2021-01-16 16:46:44 +01:00
Jan Mercl
3c4fb59e0f tpch: remove _property table 2021-01-15 17:22:10 +01:00
Jan Mercl
d0a6fb6788 add tpch. it builds/runs but it's broken. updates #27. 2021-01-14 21:19:57 +01:00
cznic
295d48b2e8 Merge branch 'un-goroutine-ctx' into 'master'
un-go-routine the ctx cancelations

See merge request cznic/sqlite!20
2021-01-12 20:39:48 +00:00
Jaap Aarts
bfc1503df5 un-go-routine the ctx cancelations 2021-01-12 20:39:48 +00:00
Jan Mercl
56d82b45dc noRows: return proper io.EOF 2021-01-12 18:19:04 +01:00
Jan Mercl
d12d3a4d8c handle binding zero length blobs, updates #40 2021-01-12 17:50:29 +01:00
Jan Mercl
663f19b57d handle zero sized allocs 2021-01-12 17:40:04 +01:00
Jan Mercl
9383707da0 conn.Close: fix memory leak 2021-01-11 13:21:44 +01:00
Jan Mercl
90dac3ac7b rows.Next: support scanning of time values, fixes #35 2021-01-10 15:26:54 +01:00
Jan Mercl
0ccef02582 improve read performance, updates #27. 2021-01-09 12:57:10 +01:00
Jan Mercl
fbe5f671cf fix BenchmarkInsertComparative, updates #39. 2021-01-08 19:05:30 +01:00
Jan Mercl
f37dad3107 add BenchmarkInsertComparative, updates #39. 2021-01-08 18:37:35 +01:00
Jan Mercl
e600c313a5 add darwin/amd64 support 2021-01-08 14:09:57 +01:00
Jan Mercl
48fa7fd005 patch Tcl tests, darwin rc2
For details see

  https://sqlite.org/forum/forumpost/0244674f4e?t=h

and

  https://sqlite.org/src/info/0c8e2ede5c325aa7
2021-01-07 22:48:37 +01:00
Jan Mercl
1c17040813 Make benchmarks try different table sizes
jnml@3900x:~/src/modernc.org/sqlite$ go test -tags cgobench -run @ -bench . -recs_per_sec_as_mbps |& tee log
test binary compiled for linux/amd64
goos: linux
goarch: amd64
pkg: modernc.org/sqlite
BenchmarkInsertMemory/1e1-24         	   17526	     69420 ns/op	144051.54 MB/s	    2242 B/op	      70 allocs/op
BenchmarkInsertMemory/1e2-24         	    1861	    713302 ns/op	140192.98 MB/s	   22427 B/op	     700 allocs/op
BenchmarkInsertMemory/1e3-24         	     168	   6949300 ns/op	143899.38 MB/s	  230079 B/op	    7744 allocs/op
BenchmarkInsertMemory/1e4-24         	      16	  66353146 ns/op	150708.76 MB/s	 2320327 B/op	   79748 allocs/op
BenchmarkInsertMemory/1e5-24         	       2	2125566987 ns/op	47046.27 MB/s	23211064 B/op	  799876 allocs/op
BenchmarkInsertMemory/1e6-24         	       1	32409599180 ns/op	30855.06 MB/s	232210448 B/op	 8001572 allocs/op
BenchmarkNextMemory/1e1-24           	  181816	      6783 ns/op	1474180.21 MB/s	      16 B/op	       1 allocs/op
BenchmarkNextMemory/1e2-24           	   22436	     52581 ns/op	1901822.13 MB/s	      16 B/op	       1 allocs/op
BenchmarkNextMemory/1e3-24           	    2810	    461729 ns/op	2165773.65 MB/s	   12432 B/op	    1645 allocs/op
BenchmarkNextMemory/1e4-24           	     264	   4671249 ns/op	2140755.03 MB/s	  156432 B/op	   19645 allocs/op
BenchmarkNextMemory/1e5-24           	       2	 552415982 ns/op	181023.00 MB/s	 1596432 B/op	  199645 allocs/op
BenchmarkNextMemory/1e6-24           	       1	5283792426 ns/op	189258.00 MB/s	15996480 B/op	 1999645 allocs/op
BenchmarkReading1/sqliteInMemory1e1-24         	  154976	      6895 ns/op	1450348.96 MB/s	      16 B/op	       1 allocs/op
BenchmarkReading1/sqliteInMemory1e2-24         	   22861	     52974 ns/op	1887724.10 MB/s	      16 B/op	       1 allocs/op
BenchmarkReading1/sqliteInMemory1e3-24         	    2499	    449004 ns/op	2227153.62 MB/s	   12432 B/op	    1645 allocs/op
BenchmarkReading1/sqliteInMemory1e4-24         	     264	   4504266 ns/op	2220117.55 MB/s	  156432 B/op	   19645 allocs/op
BenchmarkReading1/sqliteInMemory1e5-24         	       2	 543267468 ns/op	184071.39 MB/s	 1596432 B/op	  199645 allocs/op
BenchmarkReading1/sqliteInMemory1e6-24         	       1	5504469406 ns/op	181670.55 MB/s	15996464 B/op	 1999645 allocs/op
BenchmarkReading1/sqlite3InMemory1e1-24        	  165736	      7426 ns/op	1346699.36 MB/s	     320 B/op	      37 allocs/op
BenchmarkReading1/sqlite3InMemory1e2-24        	   20946	     55017 ns/op	1817631.77 MB/s	    2480 B/op	     307 allocs/op
BenchmarkReading1/sqlite3InMemory1e3-24        	    1741	    619309 ns/op	1614701.91 MB/s	   37232 B/op	    4651 allocs/op
BenchmarkReading1/sqlite3InMemory1e4-24        	     200	   5970890 ns/op	1674792.32 MB/s	  397235 B/op	   49651 allocs/op
BenchmarkReading1/sqlite3InMemory1e5-24        	      19	  61240730 ns/op	1632900.20 MB/s	 3997259 B/op	  499651 allocs/op
BenchmarkReading1/sqlite3InMemory1e6-24        	       2	 620411424 ns/op	1611833.63 MB/s	39997508 B/op	 4999652 allocs/op
BenchmarkReading1/sqliteOnDisk1e1-24           	  179678	      7028 ns/op	1422927.68 MB/s	      16 B/op	       1 allocs/op
BenchmarkReading1/sqliteOnDisk1e2-24           	   25140	     47970 ns/op	2084640.49 MB/s	      16 B/op	       1 allocs/op
BenchmarkReading1/sqliteOnDisk1e3-24           	    2340	    442164 ns/op	2261602.38 MB/s	   12432 B/op	    1645 allocs/op
BenchmarkReading1/sqliteOnDisk1e4-24           	     266	   4515133 ns/op	2214773.96 MB/s	  156432 B/op	   19645 allocs/op
BenchmarkReading1/sqliteOnDisk1e5-24           	       3	 446614930 ns/op	223906.53 MB/s	 1596437 B/op	  199645 allocs/op
BenchmarkReading1/sqliteOnDisk1e6-24           	       1	4326258166 ns/op	231146.63 MB/s	15996464 B/op	 1999645 allocs/op
BenchmarkReading1/sqlite3OnDisk1e1-24          	  119437	      9782 ns/op	1022315.11 MB/s	     320 B/op	      37 allocs/op
BenchmarkReading1/sqlite3OnDisk1e2-24          	   20011	     58941 ns/op	1696624.22 MB/s	    2480 B/op	     307 allocs/op
BenchmarkReading1/sqlite3OnDisk1e3-24          	    1981	    605212 ns/op	1652313.10 MB/s	   37232 B/op	    4651 allocs/op
BenchmarkReading1/sqlite3OnDisk1e4-24          	     195	   6269972 ns/op	1594903.42 MB/s	  397234 B/op	   49651 allocs/op
BenchmarkReading1/sqlite3OnDisk1e5-24          	      18	  62079585 ns/op	1610835.51 MB/s	 3997248 B/op	  499651 allocs/op
BenchmarkReading1/sqlite3OnDisk1e6-24          	       2	 612785354 ns/op	1631892.79 MB/s	39997520 B/op	 4999652 allocs/op
PASS
ok  	modernc.org/sqlite	280.633s
jnml@3900x:~/src/modernc.org/sqlite$ ok
2021-01-07 15:07:26 +01:00
Jan Mercl
46c8dbe082 BenchmarkReading1: use testing.TB.TempDir() 2021-01-07 13:16:49 +01:00
Jaap Aarts
7caad3c4c6 Merge branch 'benchmarks' into 'master'
Add the first  for comparing against cgo wrappers.

See merge request cznic/sqlite!18
2021-01-06 14:01:00 +00:00
Jaap Aarts
09647590b9 Add the first for comparing against cgo wrappers. 2021-01-06 14:01:00 +00:00
Jan Mercl
7dd9360c99 add detecting the silent error happening on darwin/crash5.test 2021-01-06 14:37:52 +01:00
Jan Mercl
be3a8ad798 darwin: rc1 2021-01-04 23:46:17 +01:00
Jan Mercl
a99a46d4d9 darwin: pass more Tcl tests 2021-01-04 20:52:35 +01:00
Jan Mercl
8ac0844480 bump {libc,tcl} version 2021-01-02 12:09:25 +01:00
Jan Mercl
5a4132d6bb bump {libc,tcl} version 2020-12-31 12:48:33 +01:00
Jan Mercl
8a438e4872 bump {libc,tcl} version 2020-12-30 22:08:17 +01:00
Jan Mercl
0dd17986cd bump {libc,tcl} version, pass more darwin tests 2020-12-30 11:45:05 +01:00
Jan Mercl
0e5a647940 bump {libc,tcl} version 2020-12-28 18:15:56 +01:00
Jan Mercl
9770b11512 bump {libc,tcl} version 2020-12-28 18:03:40 +01:00
Jan Mercl
236186cce9 bump {libc,tcl} version 2020-12-27 23:22:02 +01:00
Jan Mercl
630452a9b7 regenerate all targets, enable darwin build (only simple tests pass) 2020-12-26 20:52:19 +01:00
Jan Mercl
008afc1dac bump {libc,tcl} version 2020-12-22 22:10:08 +01:00
Jan Mercl
19cdae354a bump tcl version 2020-12-22 17:13:13 +01:00
Jan Mercl
18d3965fa2 fix Makefile 2020-12-21 21:13:47 +01:00
Jan Mercl
b89c2c19aa enable windows/{amd64,386} build 2020-12-21 21:10:07 +01:00
Jan Mercl
f18e142e46 update dependencies, regenerate all targets 2020-12-21 14:09:24 +01:00