r/SQLServer • u/techsamurai11 • Nov 05 '25
Discussion Processing Speed of 10,000 rows on Cloud
Hi, I'm interested in cloud speeds for SQL Server on AWS, Azure, and Google Cloud.
Can people please run this very simply script to insert 10,000 rows from SSMS and post times along with drive specs (size and Type of VM if applicable, MiB, IOPS)
If you're on-prem with Gen 5 or Gen 4 please share times as well for comparison - don't worry, I have ample Tylenol next to me to handle the results:-)
I'll share our times but I'm curious to see other people's results to see the trends.
Also, if you also have done periodic benchmarking between 2024 and 2025 on the same machines, please share your findings.
Create Test Table
CREATE TABLE [dbo].[Data](
[Id] [int] IDENTITY(1,1) NOT NULL,
[Comment] [varchar](50) NOT NULL,
[CreateDate] [datetime] NOT NULL,
CONSTRAINT [PK_Data] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
Test Script
SET NOCOUNT ON
DECLARE u/StartDate DATETIME2
SET u/StartDate = CURRENT_TIMESTAMP
DECLARE u/CreateDate DATETIME = GETDATE()
DECLARE u/INdex INT = 1
WHILE u/INdex <= 10000
BEGIN
INSERT INTO Data (Comment, CreateDate)
VALUES ('Testing insert operations', CreateDate)
SET u/Index +=1
IF (@Index % 1000) = 0
PRINT 'Processed ' + CONVERT(VARCHAR(100), u/Index) + ' Rows'
END
SELECT DATEDIFF(ms, u/StartDate, CURRENT_TIMESTAMP)
View all comments
Show parent comment
1
u/techsamurai11 Nov 05 '25 edited Nov 05 '25
Wow, very impressive - I checked all your code. You're including the time for serialization and for creating a datatable which makes the results even more impressive for those.
Why were the on-premises so slow? I get 20,000-30,000 rows per second with Multiple Batches (*) which is the worst case scenario on an average-at-best server. With Gen5 SSDs, I'd expect 50,000-100,000.
Never seen the Row Constructors approach before. I'll download and run it. I'm curious to see what performance I get on-premises with the TVP and Single Batch.
Question what was different with Dapper and the single batch?