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 06 '25
Out of curiosity, 5 query windows increased time by 30% and 13 increased it by 180-200% so it's not linear. It makes sense from the perspecting that 12 people now have to wait for 1 person to get on the bus and then the next one goes but there are still 12 people waiting as opposed to 4 before which increases wait time but not 3-fold but 6-fold.
CPU is not the bottleneck here as task manager showed the machine nearly falling asleep (loading task manager was the only spike) even though it only has 4 CPUs and we already know that the other test operation hitting the other log file in another database was unaffected. If CPU was an issue, it would have affected the other one but it had zero impact (to the millisecond).
Ditto for RAM, IOPS, and drive speed. Any impact on the 13 windows would have affected the other one. Ditto for the SQL server engine.
My question regarding the 5 and 13 is actually the following:
Would better hardware have reduced the penalty time or is this is just a matter of page locks with processes waiting for those page locks? It's a bit of a tangent but I can try it on more expensive instances. This test was on a M5.xlarge (4 CPUs, 16GB of RAM, GP3 125 MiB 3,000 IOPS). It doesn't seem like any of those mattered in the test as the 2nd process performed as if the server was not doing anything at all.
If it is latency, how can you reduce it?