Skip to content

Instantly share code, notes, and snippets.

@lahma
Last active April 24, 2018 19:32
Show Gist options
  • Select an option

  • Save lahma/8bcaec910178a67af99a3dd3e42fe0bf to your computer and use it in GitHub Desktop.

Select an option

Save lahma/8bcaec910178a67af99a3dd3e42fe0bf to your computer and use it in GitHub Desktop.
Comparing Jint test suite between .NET Core 2.0 and 2.1
BenchmarkDotNet=v0.10.14, OS=Windows 10.0.17134
Intel Core i7-6820HQ CPU 2.70GHz (Skylake), 1 CPU, 8 logical and 4 physical cores
.NET Core SDK=2.1.300-preview2-008533
  [Host]     : .NET Core 2.1.0-preview2-26406-04 (CoreCLR 4.6.26406.07, CoreFX 4.6.26406.04), 64bit RyuJIT
  DefaultJob : .NET Core 2.1.0-preview2-26406-04 (CoreCLR 4.6.26406.07, CoreFX 4.6.26406.04), 64bit RyuJIT

ArrayBenchmark

Diff Method N Mean Gen 0 Allocated
Old Slice 100 512.2 us 161.1328 660.16 KB
New 579.3 us (+13%) 161.1328 (0%) 660.16 KB (0%)
Old Concat 100 607.1 us 175.7813 720.31 KB
New 668.9 us (+10%) 175.7813 (0%) 720.31 KB (0%)
Old Unshift 100 20,136.0 us 3562.5000 14672.66 KB
New 22,569.0 us (+12%) 3562.5000 (0%) 14672.66 KB (0%)
Old Push 100 13,198.6 us 515.6250 2134.38 KB
New 13,251.1 us (0%) 515.6250 (0%) 2134.38 KB (0%)
Old Index 100 12,839.2 us 390.6250 1637.5 KB
New 13,077.1 us (+2%) 390.6250 (0%) 1637.5 KB (0%)
Old Map 100 3,683.2 us 765.6250 3151.56 KB
New 3,767.3 us (+2%) 765.6250 (0%) 3151.56 KB (0%)
Old Apply 100 707.6 us 190.4297 782.81 KB
New 722.4 us (+2%) 190.4297 (0%) 782.81 KB (0%)
Old JsonStringifyParse 100 4,687.4 us 1273.4375 5233.59 KB
New 4,499.7 us (-4%) 1273.4375 (0%) 5233.59 KB (0%)

ArrayStressBenchmark

Diff Method N Mean Gen 0 Gen 1 Allocated
Old Jint 20 696.1 ms 60000.0000 8312.5000 256.64 MB
New 703.8 ms (+1%) 60000.0000 (0%) 8312.5000 (0%) 256.64 MB (0%)

DromaeoBenchmark

Diff Method FileName Mean Gen 0 Gen 1 Gen 2 Allocated
Old Run dromaeo-3d-cube 81.43 ms 1437.5000 500.0000 - 7749.97 KB
New 83.51 ms (+3%) 1437.5000 (0%) 500.0000 (0%) - 7749.97 KB (0%)
Old Run dromaeo-core-eval 23.91 ms 62.5000 - - 299.02 KB
New 19.60 ms (-18%) 62.5000 (0%) - - 299.13 KB (0%)
Old Run dromaeo-object-array 197.28 ms 43312.5000 2000.0000 1000.0000 181953.89 KB
New 192.45 ms (-2%) 43312.5000 (0%) 2000.0000 (0%) 1000.0000 (0%) 181954.19 KB (0%)
Old Run dromaeo-object-regexp 1,093.45 ms 61750.0000 33000.0000 22500.0000 466736.45 KB
New 976.17 ms (-11%) 62000.0000 (0%) 32937.5000 (0%) 22687.5000 (+1%) 467675.58 KB (0%)
Old Run dromaeo-object-string 1,245.35 ms 220000.0000 176500.0000 173000.0000 1403845.43 KB
New 829.79 ms (-33%) 122375.0000 (-44%) 77937.5000 (-56%) 75000.0000 (-57%) 1395686.44 KB (-1%)
Old Run dromaeo-string-base64 184.81 ms 6062.5000 437.5000 - 26624.45 KB
New 184.89 ms (0%) 6062.5000 (0%) 437.5000 (0%) - 26624.45 KB (0%)

EvaluationBenchmark

Diff Method N Mean Gen 0 Allocated
Old Jint 20 702.0 us 120.1172 492.5 KB
New 690.8 us (-2%) 120.1172 (0%) 492.5 KB (0%)

LinqJsBenchmark

Diff Method N Mean Gen 0 Gen 1 Allocated
Old Jint 10 73.84 ms 5062.5000 2500.0000 30.56 MB
New 71.98 ms (-3%) 5062.5000 (0%) 2500.0000 (0%) 30.55 MB (0%)

MinimalScriptBenchmark

Diff Method N Mean Gen 0 Allocated
Old Jint 10 18.97 us 8.1482 33.44 KB
New 19.21 us (+1%) 8.1482 (0%) 33.44 KB (0%)

StopwatchBenchmark

Diff Method N Mean Gen 0 Gen 1 Allocated
Old Jint 1 1.243 s 17125.0000 62.5000 68.5 MB
New 1.265 s (+2%) 17125.0000 (0%) 125.0000 (+100%) 68.5 MB (0%)

StringEqualParameterPerformance

Diff Method Mean
Old EqualsWithoutLengthCheck 326.3 us
New 238.4 us (-27%)
Old EqualsWithLengthCheck 206.9 us
New 188.3 us (-9%)

SunSpiderBenchmark

Diff Method FileName Mean Gen 0 Gen 1 Gen 2 Allocated
Old Run 3d-cube 651.2 ms 12000.0000 312.5000 - 50.06 MB
New 674.5 ms (+4%) 12000.0000 (0%) 312.5000 (0%) - 50.06 MB (0%)
Old Run 3d-morph 605.4 ms 11812.5000 2500.0000 1062.5000 68.03 MB
New 599.6 ms (-1%) 11812.5000 (0%) 2500.0000 (0%) 1062.5000 (0%) 68.03 MB (0%)
Old Run 3d-raytrace 567.9 ms 22562.5000 750.0000 125.0000 92.34 MB
New 518.7 ms (-9%) 22562.5000 (0%) 562.5000 (-25%) 62.5000 (-50%) 92.34 MB (0%)
Old Run access-binary-trees 213.8 ms 17625.0000 312.5000 62.5000 73 MB
New 211.1 ms (-1%) 17625.0000 (0%) 312.5000 (0%) 62.5000 (0%) 73 MB (0%)
Old Run access-fannkuch 1,973.5 ms 9437.5000 187.5000 - 37.87 MB
New 2,085.0 ms (+6%) 9437.5000 (0%) 187.5000 (0%) - 37.87 MB (0%)
Old Run access-nbody 589.8 ms 13125.0000 - - 52.6 MB
New 610.5 ms (+4%) 13125.0000 (0%) - - 52.6 MB (0%)
Old Run access-nsieve 745.1 ms 15312.5000 3937.5000 1875.0000 73.09 MB
New 717.7 ms (-4%) 15375.0000 (0%) 3937.5000 (0%) 1875.0000 (0%) 73.09 MB (0%)
Old Run bitops-3bit-bits-in-byte 452.4 ms 19750.0000 - - 79.06 MB
New 458.9 ms (+1%) 19750.0000 (0%) - - 79.06 MB (0%)
Old Run bitops-bits-in-byte 769.0 ms 12437.5000 62.5000 - 49.86 MB
New 783.9 ms (+2%) 12437.5000 (0%) 62.5000 (0%) - 49.86 MB (0%)
Old Run bitops-bitwise-and 454.4 ms 13562.5000 - - 54.32 MB
New 455.4 ms (0%) 13562.5000 (0%) - - 54.32 MB (0%)
Old Run bitops-nsieve-bits 761.4 ms 21625.0000 250.0000 62.5000 88.65 MB
New 769.9 ms (+1%) 21625.0000 (0%) 250.0000 (0%) 62.5000 (0%) 88.65 MB (0%)
Old Run controlflow-recursive 302.3 ms 25937.5000 62.5000 - 103.78 MB
New 306.9 ms (+2%) 25937.5000 (0%) 62.5000 (0%) - 103.78 MB (0%)
Old Run crypto-aes 489.4 ms 5625.0000 250.0000 - 24.49 MB
New 483.3 ms (-1%) 5562.5000 (-1%) 250.0000 (0%) - 24.47 MB (0%)
Old Run crypto-md5 349.4 ms 30562.5000 187.5000 - 124.99 MB
New 349.3 ms (0%) 30562.5000 (0%) 187.5000 (0%) - 124.99 MB (0%)
Old Run crypto-sha1 344.9 ms 24875.0000 312.5000 - 101.48 MB
New 342.6 ms (-1%) 24875.0000 (0%) 312.5000 (0%) - 101.48 MB (0%)
Old Run date-format-tofte 340.7 ms 12625.0000 - - 50.73 MB
New 341.4 ms (0%) 12625.0000 (0%) - - 50.73 MB (0%)
Old Run date-format-xparb 335.6 ms 10375.0000 250.0000 - 42.27 MB
New 326.0 ms (-3%) 10375.0000 (0%) 250.0000 (0%) - 42.26 MB (0%)
Old Run math-cordic 990.1 ms 22562.5000 62.5000 - 90.25 MB
New 1,004.1 ms (+1%) 22562.5000 (0%) 62.5000 (0%) - 90.25 MB (0%)
Old Run math-partial-sums 312.5 ms 7250.0000 - - 29.04 MB
New 318.6 ms (+2%) 7250.0000 (0%) - - 29.04 MB (0%)
Old Run math-spectral-norm 369.2 ms 18062.5000 - - 72.31 MB
New 377.8 ms (+2%) 18062.5000 (0%) - - 72.31 MB (0%)
Old Run regexp-dna 341.6 ms 2250.0000 1812.5000 1500.0000 13.55 MB
New 320.6 ms (-6%) 1875.0000 (-17%) 1500.0000 (-17%) 1187.5000 (-21%) 13.53 MB (0%)
Old Run string-base64 278.0 ms 8875.0000 500.0000 - 37.16 MB
New 275.7 ms (-1%) 8875.0000 (0%) 500.0000 (0%) - 37.16 MB (0%)
Old Run string-fasta 478.5 ms 27125.0000 62.5000 - 108.53 MB
New 466.1 ms (-3%) 27125.0000 (0%) - - 108.53 MB (0%)
Old Run string-tagcloud 219.3 ms 14687.5000 1750.0000 687.5000 67.2 MB
New 213.6 ms (-3%) 14687.5000 (0%) 1750.0000 (0%) 687.5000 (0%) 67.2 MB (0%)
Old Run string-unpack-code 170.7 ms 14062.5000 3937.5000 937.5000 68.64 MB
New 169.4 ms (-1%) 14125.0000 (0%) 3750.0000 (-5%) 875.0000 (-7%) 68.09 MB (-1%)
Old Run string-validate-input 189.6 ms 7312.5000 312.5000 62.5000 34.26 MB
New 190.4 ms (0%) 7312.5000 (0%) 312.5000 (0%) 62.5000 (0%) 34.26 MB (0%)

UncacheableExpressionsBenchmark

Diff Method N Mean Gen 0 Gen 1 Allocated
Old Benchmark 500 389.6 ms 50187.5000 10000.0000 211.26 MB
New 381.3 ms (-2%) 50187.5000 (0%) 10000.0000 (0%) 211.26 MB (0%)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment