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
Copy file name to clipboardExpand all lines: README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -314,21 +314,21 @@ import type { Raw, SqlValue, Timezone } from 'sql-escaper';
314
314
315
315
Each benchmark formats `10,000` queries using `format` with `100` mixed values (numbers, strings, `null`, and dates), comparing **SQL Escaper** against the original [**sqlstring**](https://github.com/mysqljs/sqlstring) through [**hyperfine**](https://github.com/sharkdp/hyperfine):
| Select 100 values | 460.9 ms |242.2 ms |**1.90x faster**|
320
+
| Insert 100 values | 468.6 ms |242.5 ms |**1.93x faster**|
321
+
| SET with 100 values | 484.2 ms |257.0 ms |**1.88x faster**|
322
+
| SET with 100 objects | 671.6 ms |283.2 ms |**2.37x faster**|
323
+
| ON DUPLICATE KEY UPDATE with 100 values | 894.0 ms |459.8 ms |**1.94x faster**|
324
+
| ON DUPLICATE KEY UPDATE with 100 objects |1,092.0 ms |485.7 ms |**2.25x faster**|
325
325
326
326
- See detailed results and how the benchmarks are run in the [**benchmark**](https://github.com/wellwelwel/sql-escaper/tree/main/benchmark) directory.
327
327
328
328
> [!NOTE]
329
329
>
330
-
> Benchmarks ran on an **Apple M2 Ultra** with **64 GB RAM**using **Node.js v25.5.0**.
331
-
> Results may vary depending on hardware and runtime version.
330
+
> Benchmarks ran on [**GitHub Actions**](https://github.com/wellwelwel/sql-escaper/blob/main/.github/workflows/ci_benchmark.yml) (`ubuntu-latest`) using **Node.js LTS**.
331
+
> Results may vary depending on runner hardware and runtime version.
0 commit comments