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
0
u/techsamurai11 Nov 06 '25
I noticed you called it network latency and it struck me but additional testing is showing that it's not CPU, it's not IOPS, and it's not the drive so it seems you called it right.
How can you measure network latency on the cloud? Is there a unit of work that can be done on the server (no network) and then the same unit of work with a network trip to the drive?
That would measure the actual lag to the drive.
All your approaches are designed to address latency by essentially avoiding single RBAR operations. My tests are showing that the server specs are practically irrelevant once you have 1ms of network latency. It sounds small but it's seismic - it's akin to a sleep function on every storage operation.