mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 05:59:14 +00:00
Improve benchmark repeatability.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#include <string.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#include "sqlite3.h"
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
|
||||
// Amalgamation
|
||||
#include "sqlite3.c"
|
||||
// VFS
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "sqlite3.h"
|
||||
|
||||
6
vfs/tests/mptest/testdata/main.c
vendored
6
vfs/tests/mptest/testdata/main.c
vendored
@@ -1,5 +1,4 @@
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <unistd.h>
|
||||
|
||||
// Amalgamation
|
||||
#include "sqlite3.c"
|
||||
@@ -8,9 +7,8 @@
|
||||
|
||||
__attribute__((constructor)) void init() { sqlite3_initialize(); }
|
||||
|
||||
static int dont_unlink(const char *pathname) { return 0; }
|
||||
#define sqlite3_enable_load_extension(...)
|
||||
#define sqlite3_trace(...)
|
||||
#define unlink dont_unlink
|
||||
#define unlink(...) (0)
|
||||
#undef UNUSED_PARAMETER
|
||||
#include "mptest.c"
|
||||
2
vfs/tests/speedtest1/testdata/main.c
vendored
2
vfs/tests/speedtest1/testdata/main.c
vendored
@@ -6,5 +6,5 @@
|
||||
// VFS
|
||||
#include "vfs.c"
|
||||
|
||||
#define randomFunc(args...) randomFunc2(args)
|
||||
#define randomFunc randomFunc2
|
||||
#include "speedtest1.c"
|
||||
Reference in New Issue
Block a user