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
b89c2c19aa
enable windows/{amd64,386} build
2020-12-21 21:10:07 +01:00
736c530ac7
implement sql.{RowsColumnTypeScanType,RowsColumnTypeDatabaseTypeName,RowsColumnTypeLength,RowsColumnTypeNullable,RowsColumnTypePrecisionScale}, fixes #30
2020-09-25 15:12:39 +02:00
a4318db8c7
handle properly 0 rows query results, fixes #28
2020-09-21 18:36:03 +02:00
f228816300
support linux/arm{,64}
2020-09-13 15:31:23 +02:00
e662a135d1
release 1.4.0
2020-08-26 23:31:54 +02:00
1349149922
use crt v3.24.9
2020-07-31 14:18:38 +02:00
3337c85b5e
103 errors out of 202628 tests on Linux 64-bit little-endian
2020-07-30 17:13:42 +02:00
2491c1ae5a
575 errors out of 200676 tests on Linux 64-bit little-endian
...
All memory allocations freed - no leaks
2020-07-28 18:42:57 +02:00
b406626c64
release v1.4.0-beta1
2020-07-26 22:36:18 +02:00
141c3f22b7
fix forgotten TODO
2020-01-01 12:05:39 +01:00
ef38ac9c3b
use sqlite3_unlock_notify, fixes #20 .
2019-12-31 16:46:08 +01:00
45936a375a
fix (*stmt).Close logic, closes #19
2019-12-28 11:10:32 +01:00
6efd3c7000
v1.1.0-alpha.2
2019-12-26 17:24:51 +01:00
8717080461
add concurrent inserts test
2019-12-21 11:00:50 +01:00
0bd6d67fef
prepare pre-alpha release
2019-12-18 17:51:11 +01:00
89fd60bf68
Make modernc.org the repository root
2018-11-06 18:03:25 +01:00
91382a8425
Fix Windows build.
...
modified: Makefile
modified: all_test.go
modified: internal/bin/bin_linux_386.go
modified: internal/bin/bin_linux_amd64.go
new file: z_linux_test.go
2017-07-04 17:14:51 +02:00
2aa5e95243
Add TestThread3 (does not yet pass). Updates #15 .
...
modified: Makefile
modified: all_test.go
modified: generator.go
modified: internal/bin/bin_linux_386.go
modified: internal/bin/bin_linux_amd64.go
new file: internal/threadtest3/threadtest3_linux_386.go
new file: internal/threadtest3/threadtest3_linux_amd64.go
2017-07-03 23:36:03 +02:00
481e652f27
Regenerate Linux using latest CCGO.
...
modified: Makefile
modified: all_test.go
modified: internal/bin/bin_linux_386.go
modified: internal/bin/bin_linux_amd64.go
modified: internal/mptest/mptest_linux_386.go
modified: internal/mptest/mptest_linux_amd64.go
modified: internal/threadtest4/threadtest4_linux_386.go
modified: internal/threadtest4/threadtest4_linux_amd64.go
2017-07-03 17:29:33 +02:00
51c2f03f63
all_test/TestThread{1,4}: Run more than once.
...
modified: Makefile
modified: all_test.go
2017-07-03 14:43:34 +02:00
5e8a085cfb
Add a couple of tests. Build only on linux, do not pass.
...
modified: Makefile
modified: all_test.go
modified: generator.go
modified: internal/bin/bin_linux_386.go
modified: internal/bin/bin_linux_amd64.go
new file: internal/mptest/mptest_linux_386.go
new file: internal/mptest/mptest_linux_amd64.go
new file: internal/threadtest1/threadtest1_linux_386.go
new file: internal/threadtest1/threadtest1_linux_amd64.go
new file: internal/threadtest2/threadtest2_linux_386.go
new file: internal/threadtest2/threadtest2_linux_amd64.go
new file: internal/threadtest4/threadtest4_linux_386.go
new file: internal/threadtest4/threadtest4_linux_amd64.go
modified: main.c
new file: sqlite.h
new file: testdata/mptest/config01.test
new file: testdata/mptest/config02.test
new file: testdata/mptest/crash01.test
new file: testdata/mptest/crash02.subtest
new file: testdata/mptest/multiwrite01.test
2017-07-01 23:04:53 +02:00
fdc87f0039
all_test.go/TestIssue11: Do not panic, use t.Fatal instead. Updates #12 .
...
modified: all_test.go
2017-06-13 16:01:51 +02:00
11216f7304
Do not use fixed heap on Linux. Updates #12 .
...
modified: all_test.go
modified: generator.go
modified: internal/bin/bin_linux_386.go
modified: internal/bin/bin_linux_amd64.go
modified: main.c
modified: sqlite.go
modified: sqlite_go18.go
2017-06-13 15:18:34 +02:00
6b30b8701e
switch windows to CRT, throw out old virtual
2017-06-10 14:02:32 +02:00
8c183b526b
Release the {cgo,VM}-free Linux/Intel version.
...
modified: Makefile
new file: all_linux_test.go
renamed: all_test.go -> all_test_windows.go
new file: doc.go
new file: generate_linux.go
new file: generate_windows.go
modified: generator.go
new file: generator_windows.go
modified: internal/bin/bin_linux_386.go
modified: internal/bin/bin_linux_amd64.go
modified: main.c
modified: sqlite.go
modified: sqlite_go18.go
new file: sqlite_windows.go
2017-06-05 20:13:10 +02:00
1a3b0a731a
Add bug reproduction test. Updates #11 .
...
modified: all_test.go
2017-05-22 14:58:44 +02:00
1b640bcb5a
Improve profiling support and reporting a bit.
2017-04-25 19:02:48 +02:00
b1f34f398b
Add simple benchmarks, enable using the new profiling API.
2017-04-24 18:34:39 +02:00
ed3807ab47
Add Initial content.
2017-04-21 01:17:29 +02:00