Skip to content
bench/lang

Swift

swift 6.1.2

#10
Overall rank
5.64×
Score
17/17
Problems covered
0
Did not finish

Best result per problem

ProblemRankCodeTimePeak mem
binarytrees#12 of 191.swift1.18s54.4MB
coro-prime-sieve#2 of 191.swift149ms8.1MB
edigits#15 of 191.swift3.80s8.8MB
fannkuch-redux#13 of 191.swift2.10s6.7MB
fasta#2 of 193.swift204ms20.2MB
http-server#7 of 191.swift44ms12.4MB
json-serde#13 of 191.swift1.27s211.0MB
knucleotide#10 of 181.swift1.64s85.6MB
lru#6 of 191.swift143ms6.3MB
mandelbrot#6 of 191.swift717ms11.7MB
merkletrees#10 of 191.swift583ms76.2MB
nbody#8 of 197.swift177ms9.8MB
nsieve#10 of 191.swift1.03s45.0MB
pidigits#17 of 191.swift3.84s7.6MB
regex-redux#17 of 181.swift5.25s362.8MB
secp256k1#16 of 191.swift4.88s7.1MB
spectral-norm#9 of 191.swift2.01s10.1MB

Head to head

Swift is faster on 2 of 17 shared problems

ProblemSwiftC++Faster by
binarytrees1.18s649msC++ 1.82×
coro-prime-sieve149ms53msC++ 2.79×
edigits3.80s24msC++ 157.54×
fannkuch-redux2.10s1.76sC++ 1.19×
fasta204ms242msSwift 1.19×
http-server44ms27msC++ 1.60×
json-serde1.27s327msC++ 3.89×
knucleotide1.64s275msC++ 5.95×
lru143ms96msC++ 1.49×
mandelbrot717ms758msSwift 1.06×
merkletrees583ms300msC++ 1.94×
nbody177ms118msC++ 1.51×
nsieve1.03s276msC++ 3.72×
pidigits3.84s180msC++ 21.39×
regex-redux5.25s658msC++ 7.98×
secp256k14.88s430msC++ 11.35×
spectral-norm2.01s1.32sC++ 1.53×

Over time

Overall score after each run on Apple M5 laptop. Lower is faster.

Swift overall score per run
Swift overall score per run
RunSwift
Oct 19, 20262.44×
Oct 20, 20265.64×
Oct 20, 20265.64×
Recent runs, newest first
RunVersionRankScoreChange
Oct 20, 2026swift 6.1.2#105.64×no change
Oct 20, 2026swift 6.1.2#105.64×131.1% slower
Oct 19, 2026swift 6.1.2unranked2.44×–