diff --git a/benchmarks/SourceTextBenchmarks.fs b/benchmarks/SourceTextBenchmarks.fs index 3c86b5321..cbb37f739 100644 --- a/benchmarks/SourceTextBenchmarks.fs +++ b/benchmarks/SourceTextBenchmarks.fs @@ -12,10 +12,13 @@ module Helpers = open FSharp.UMX open System.Collections.Generic + // Generate synthetic file content for cross-platform benchmarking let fileContents = - IO.File.ReadAllText( - @"C:\Users\jimmy\Repositories\public\TheAngryByrd\span-playground\Romeo and Juliet by William Shakespeare.txt" - ) + let lines = + [ 1..1000 ] + |> List.map (fun i -> sprintf "let value%d = %d // This is line %d with some text content" i i i) + + String.concat "\n" lines @@ -55,7 +58,7 @@ open Helpers open BenchmarkDotNet.Jobs [] -[] +[] type SourceText_LineChanges_Benchmarks() = []