Results for Paid LLM APIs

The below captures the performance of 3 models from two commercial LLM APIs: OpenAI (GPT-3.5 Turbo, GPT-4, ...) and MistralAI (tiny, small, medium).

There are many other providers, but OpenAI is the most commonly used. MistralAI commercial API has launched recently and has a very good relationship with the Open-Source community, so we've added it as a challenger to compare OpenAI's cost effectiveness ("cost per point", ie, how many cents would you pay for 1pt in this benchmark)

Reminder: The below scores are on a scale 0-100, where 100 is the best possible score and 0 means the generated code was not even parseable.

# Imports
using JuliaLLMLeaderboard
using CairoMakie, AlgebraOfGraphics
using MarkdownTables, DataFramesMeta
using Statistics: mean, median, quantile, std;

# ! Configuration
SAVE_PLOTS = false
DIR_RESULTS = joinpath(pkgdir(JuliaLLMLeaderboard), "code_generation")
PAID_MODELS_DEFAULT = [
    "gpt-3.5-turbo",
    "gpt-3.5-turbo-1106",
    "gpt-3.5-turbo-0125",
    "gpt-4-1106-preview",
    "gpt-4-0125-preview",
    "gpt-4-turbo-2024-04-09",
    "gpt-4o-2024-05-13",
    "mistral-tiny",
    "mistral-small",
    "mistral-medium",
    "mistral-large",
    "mistral-small-2402",
    "mistral-medium-2312",
    "mistral-large-2402",
    "claude-3-opus-20240229",
    "claude-3-sonnet-20240229",
    "claude-3-haiku-20240307",
    "claude-2.1",
    "gemini-1.0-pro-latest",
    "deepseek-chat",
    "deepseek-coder"
];
PROMPTS = [
    "JuliaExpertCoTTask",
    "JuliaExpertAsk",
    "InJulia",
    "JuliaRecapTask",
    "JuliaRecapCoTTask"
];

Load Latest Results

Use only the 10 most recent evaluations available for each definition/model/prompt

df = @chain begin
    load_evals(DIR_RESULTS; max_history = 10)
    @rsubset :model in PAID_MODELS_DEFAULT && :prompt_label in PROMPTS
end;

Model Comparison

Highest average score by model:

fig = @chain df begin
    @by [:model] begin
        :cost = mean(:cost)
        :elapsed = mean(:elapsed_seconds)
        :score = mean(:score)
    end
    transform(_, names(_, Number) .=> ByRow(x -> round(x, digits = 1)), renamecols = false)
    @orderby -:score
    @aside local order_ = _.model
    data(_) *
    mapping(:model => sorter(order_) => "Model",
        :score => "Avg. Score (Max 100 pts)") *
    visual(BarPlot; bar_labels = :y,
        label_offset = 0, label_rotation = 1)
    draw(;
        axis = (limits = (nothing, nothing, 0, 100),
            xticklabelrotation = 45,
            title = "Paid APIs Performance"))
end
SAVE_PLOTS && save("assets/model-comparison-paid.png", fig)
fig

Table:

output = @chain df begin
    @by [:model] begin
        :cost = mean(:cost)
        :elapsed = mean(:elapsed_seconds)
        :score = mean(:score)
        :score_std_deviation = std(:score)
        :count_zero_score = count(iszero, :score)
        :count_full_score = count(==(100), :score)
    end
    transform(_,
        [:elapsed, :score, :score_std_deviation] .=> ByRow(x -> round(x, digits = 1)),
        renamecols = false)
    @rtransform :cost_cents = round(:cost * 100; digits = 2)
    select(Not(:cost))
    @orderby -:score
    rename(_, names(_) .|> unscrub_string)
end
# markdown_table(output, String) |> clipboard
markdown_table(output)
ModelElapsedScoreScore Std DeviationCount Zero ScoreCount Full ScoreCost Cents
claude-3-opus-2024022920.383.219.623293.9
claude-3-sonnet-202402298.778.826.2223080.73
gpt-4-turbo-2024-04-0910.875.329.6382901.38
claude-3-haiku-202403074.074.927.292610.05
gpt-4-0125-preview30.374.430.3392841.29
gpt-4-1106-preview22.474.429.9191421.21
gpt-4o-2024-05-134.372.929.1292570.0
deepseek-coder13.071.632.6391150.01
mistral-large-24028.571.627.2132230.0
deepseek-chat17.971.332.9301400.01
claude-2.110.167.930.8472290.8
gpt-3.5-turbo-01251.261.736.61251920.03
mistral-medium18.160.833.222900.41
mistral-small5.960.130.227760.09
mistral-small-24025.359.929.4311690.0
gpt-3.5-turbo-11062.158.439.282970.04
mistral-tiny4.646.932.075420.02
gpt-3.5-turbo3.642.338.2132540.04
gemini-1.0-pro-latest4.234.827.4181250.0

While the victory of GPT-4 is not surprising, note that the our sample size is small and the standard deviation is quite high.

Overview by Prompt Template

Bar chart with all paid models and various prompt templates

fig = @chain df begin
    @by [:model, :prompt_label] begin
        :cost = mean(:cost)
        :elapsed = mean(:elapsed_seconds)
        :score = mean(:score)
        :score_median = median(:score)
        :cnt = $nrow
    end
    @aside local average_ = @by(_, :model, :avg=mean(:score)) |>
                            x -> @orderby(x, -:avg).model
    data(_) *
    mapping(:model => sorter(average_) => "Model",
        :score => "Avg. Score (Max 100 pts)",
        color = :prompt_label => "Prompts",
        dodge = :prompt_label) * visual(BarPlot)
    draw(;
        figure = (; size = (900, 600)),
        axis = (xticklabelrotation = 45, title = "Comparison for Paid APIs"))
end
SAVE_PLOTS && save("assets/model-prompt-comparison-paid.png", fig)
fig

Table:

  • Surprised by the low performance of some models (eg, GPT 3.5 Turbo) on the CoT prompts? It's because the model accidentally sends a "stop" token before it writes the code.
output = @chain df begin
    @by [:model, :prompt_label] begin
        :cost = mean(:cost)
        :elapsed = mean(:elapsed_seconds)
        :score = mean(:score)
    end
    @aside average_ = @by _ :model :AverageScore=mean(:score) |> x -> round(x, digits = 1)
    unstack(:model, :prompt_label, :score; fill = 0.0)
    transform(_, names(_, Number) .=> ByRow(x -> round(x, digits = 1)), renamecols = false)
    leftjoin(average_, on = :model)
    @orderby -:AverageScore
end
# markdown_table(output, String) |> clipboard
markdown_table(output)
modelInJuliaJuliaExpertAskJuliaExpertCoTTaskJuliaRecapCoTTaskJuliaRecapTaskAverageScore
claude-3-opus-2024022984.184.085.181.681.283.2
claude-3-sonnet-2024022980.979.080.375.678.278.8
gpt-4-turbo-2024-04-0976.578.575.673.472.375.3
claude-3-haiku-2024030775.175.064.179.181.374.9
gpt-4-0125-preview72.777.572.475.074.674.4
gpt-4-1106-preview74.979.171.872.473.674.4
gpt-4o-2024-05-1371.275.780.667.969.272.9
deepseek-coder81.169.956.871.978.171.6
mistral-large-240267.971.171.074.273.671.6
deepseek-chat76.456.475.372.575.571.2
claude-2.164.365.472.269.268.467.9
gpt-3.5-turbo-012573.074.764.729.366.961.7
mistral-medium63.160.563.455.961.260.8
mistral-small67.361.459.956.155.960.1
mistral-small-240261.763.062.156.655.959.9
gpt-3.5-turbo-110674.673.673.415.455.058.4
mistral-tiny51.744.341.150.547.247.0
gpt-3.5-turbo73.160.932.826.218.442.3
gemini-1.0-pro-latest36.038.635.230.833.334.8

Other Considerations

Comparison of Cost vs Average Score

fig = @chain df begin
    @by [:model, :prompt_label] begin
        :cost = mean(:cost)
        :elapsed = mean(:elapsed_seconds)
        :score = mean(:score)
        :score_median = median(:score)
        :cnt = $nrow
    end
    data(_) * mapping(:cost => (x -> x * 100) => "Avg. Cost (US Cents/query)",
        :score => "Avg. Score (Max 100 pts)",
        color = :model => "Model")
    draw(;
        axis = (xticklabelrotation = 45,
            title = "Cost vs Score for Paid APIs"))
end
SAVE_PLOTS && save("assets/cost-vs-score-scatter-paid.png", fig)
fig

Table:

  • Point per cent is the average score divided by the average cost in US cents
output = @chain df begin
    @by [:model, :prompt_label] begin
        :cost = mean(:cost)
        :elapsed = mean(:elapsed_seconds)
        :score_avg = mean(:score)
        :score_median = median(:score)
        :cnt = $nrow
    end
    @rtransform :point_per_cent = :score_avg / :cost / 100
    @orderby -:point_per_cent
    #
    transform(_,
        names(_, Not(:model, :prompt_label, :cost)) .=> ByRow(x -> round(x, digits = 1)),
        renamecols = false)
    @rtransform :cost_cents = round(:cost * 100; digits = 2)
    select(Not(:cost))
    rename(_, names(_) .|> unscrub_string)
end
# markdown_table(output, String) |> clipboard
markdown_table(output)
ModelPrompt LabelElapsedScore AvgScore MedianCntPoint Per CentCost Cents
gemini-1.0-pro-latestInJulia4.136.025.0140.0Inf0.0
gemini-1.0-pro-latestJuliaExpertAsk3.938.650.0140.0Inf0.0
gemini-1.0-pro-latestJuliaExpertCoTTask4.035.225.0140.0Inf0.0
gemini-1.0-pro-latestJuliaRecapCoTTask4.830.825.0140.0Inf0.0
gemini-1.0-pro-latestJuliaRecapTask4.333.325.0140.0Inf0.0
gpt-4o-2024-05-13InJulia4.271.285.0140.0Inf0.0
gpt-4o-2024-05-13JuliaExpertAsk1.675.786.7140.0Inf0.0
gpt-4o-2024-05-13JuliaExpertCoTTask4.380.690.0140.0Inf0.0
gpt-4o-2024-05-13JuliaRecapCoTTask5.567.964.6140.0Inf0.0
gpt-4o-2024-05-13JuliaRecapTask5.869.273.8140.0Inf0.0
mistral-large-2402InJulia7.567.962.5140.0Inf0.0
mistral-large-2402JuliaExpertAsk5.371.180.0140.0Inf0.0
mistral-large-2402JuliaExpertCoTTask8.671.080.0140.0Inf0.0
mistral-large-2402JuliaRecapCoTTask10.874.283.3140.0Inf0.0
mistral-large-2402JuliaRecapTask10.573.690.0140.0Inf0.0
mistral-small-2402InJulia4.461.750.0140.0Inf0.0
mistral-small-2402JuliaExpertAsk3.663.061.2140.0Inf0.0
mistral-small-2402JuliaExpertCoTTask4.662.161.9140.0Inf0.0
mistral-small-2402JuliaRecapCoTTask8.256.650.0140.0Inf0.0
mistral-small-2402JuliaRecapTask5.855.950.0140.0Inf0.0
deepseek-chatInJulia18.376.487.170.08337.90.01
deepseek-coderInJulia14.581.186.770.08030.00.01
deepseek-coderJuliaExpertAsk13.169.983.370.07075.80.01
deepseek-chatJuliaExpertCoTTask18.375.390.075.06902.30.01
deepseek-chatJuliaExpertAsk17.156.475.070.06179.20.01
deepseek-chatJuliaRecapTask16.975.588.870.05938.20.01
deepseek-coderJuliaRecapTask12.678.183.370.05708.30.01
deepseek-coderJuliaRecapCoTTask12.771.990.070.05282.50.01
deepseek-chatJuliaRecapCoTTask18.972.575.070.05271.40.01
deepseek-coderJuliaExpertCoTTask12.056.867.570.05182.20.01
mistral-tinyJuliaExpertAsk2.444.350.070.04333.30.01
gpt-3.5-turbo-0125JuliaExpertAsk0.974.780.0140.04119.00.02
mistral-tinyInJulia3.851.750.068.02869.40.02
gpt-3.5-turbo-1106JuliaExpertAsk1.673.680.070.02747.90.03
gpt-3.5-turbo-0125InJulia1.673.080.0140.02276.80.03
gpt-3.5-turboJuliaExpertAsk3.160.960.070.02177.50.03
gpt-3.5-turbo-0125JuliaExpertCoTTask1.264.782.3140.02168.80.03
claude-3-haiku-20240307JuliaExpertAsk2.875.080.0140.02084.80.04
mistral-tinyJuliaExpertCoTTask6.641.150.070.02040.50.02
mistral-tinyJuliaRecapCoTTask4.950.550.070.01957.10.03
gpt-3.5-turbo-0125JuliaRecapTask1.266.975.0140.01916.10.03
gpt-3.5-turbo-1106JuliaExpertCoTTask1.973.495.069.01873.10.04
mistral-tinyJuliaRecapTask5.147.250.070.01783.80.03
gpt-3.5-turbo-1106InJulia2.974.683.370.01672.10.04
gpt-3.5-turboInJulia5.073.167.570.01633.30.04
claude-3-haiku-20240307JuliaRecapCoTTask4.279.190.0140.01349.70.06
claude-3-haiku-20240307InJulia4.275.185.8140.01338.20.06
claude-3-haiku-20240307JuliaRecapTask4.481.395.0140.01296.30.06
claude-3-haiku-20240307JuliaExpertCoTTask4.264.162.5140.01110.50.06
mistral-smallJuliaExpertAsk3.761.452.570.01078.70.06
gpt-3.5-turbo-1106JuliaRecapTask1.955.062.569.01028.10.05
gpt-3.5-turboJuliaExpertCoTTask3.132.80.070.01010.40.03
mistral-smallInJulia5.367.360.070.0890.80.08
gpt-3.5-turbo-0125JuliaRecapCoTTask1.229.30.0140.0850.80.03
mistral-smallJuliaExpertCoTTask5.359.955.070.0706.00.08
gpt-3.5-turboJuliaRecapCoTTask3.626.20.070.0585.40.04
mistral-smallJuliaRecapCoTTask7.656.157.570.0460.00.12
mistral-smallJuliaRecapTask7.755.955.070.0436.20.13
gpt-3.5-turboJuliaRecapTask3.418.40.070.0423.50.04
gpt-3.5-turbo-1106JuliaRecapCoTTask2.015.40.070.0274.40.06
mistral-mediumJuliaExpertAsk12.360.555.070.0230.30.26
mistral-mediumInJulia14.863.160.070.0187.60.34
gpt-4-0125-previewJuliaExpertAsk10.877.586.7140.0157.70.49
claude-3-sonnet-20240229JuliaExpertAsk6.379.090.0140.0149.70.53
mistral-mediumJuliaExpertCoTTask20.063.462.570.0146.80.43
claude-3-sonnet-20240229JuliaExpertCoTTask7.280.395.0140.0129.20.62
gpt-4-1106-previewJuliaExpertAsk10.979.190.870.0125.20.63
mistral-mediumJuliaRecapTask20.261.265.070.0116.00.53
mistral-mediumJuliaRecapCoTTask23.355.950.070.0110.90.5
claude-2.1InJulia9.364.360.0140.098.60.65
claude-3-sonnet-20240229JuliaRecapCoTTask9.475.687.5140.098.50.77
claude-3-sonnet-20240229InJulia10.080.995.0140.095.80.84
claude-2.1JuliaExpertAsk9.665.471.2140.093.80.7
gpt-4-turbo-2024-04-09JuliaExpertAsk7.078.586.7140.093.50.84
claude-3-sonnet-20240229JuliaRecapTask10.678.290.0140.086.10.91
claude-2.1JuliaExpertCoTTask10.672.275.0140.082.80.87
claude-2.1JuliaRecapCoTTask10.669.275.0140.078.30.88
claude-2.1JuliaRecapTask10.668.475.0140.076.30.9
gpt-4-1106-previewJuliaExpertCoTTask21.771.892.570.063.91.12
gpt-4-0125-previewJuliaExpertCoTTask28.572.495.0140.060.21.2
gpt-4-1106-previewInJulia27.474.986.770.057.91.29
gpt-4-turbo-2024-04-09JuliaExpertCoTTask10.575.695.0140.056.51.34
gpt-4-0125-previewInJulia34.472.786.7140.052.21.39
gpt-4-turbo-2024-04-09InJulia13.076.586.7140.051.41.49
gpt-4-1106-previewJuliaRecapCoTTask25.072.485.670.048.91.48
gpt-4-1106-previewJuliaRecapTask26.973.677.570.047.91.54
gpt-4-turbo-2024-04-09JuliaRecapCoTTask11.873.488.8140.045.61.61
gpt-4-0125-previewJuliaRecapCoTTask37.275.090.0140.044.61.68
gpt-4-turbo-2024-04-09JuliaRecapTask11.572.390.0140.044.51.63
gpt-4-0125-previewJuliaRecapTask40.874.690.0140.043.71.71
claude-3-opus-20240229JuliaExpertAsk17.484.090.0140.024.63.41
claude-3-opus-20240229JuliaExpertCoTTask17.685.1100.0140.024.33.5
claude-3-opus-20240229JuliaRecapCoTTask21.781.688.8140.020.93.9
claude-3-opus-20240229JuliaRecapTask22.881.290.0140.019.34.21
claude-3-opus-20240229InJulia22.184.1100.0140.018.94.46

Comparison of Time-to-generate vs Average Score

fig = @chain df begin
    @aside local xlims = quantile(df.elapsed_seconds, [0.01, 0.99])
    @by [:model, :prompt_label] begin
        :elapsed = mean(:elapsed_seconds)
        :elapsed_median = median(:elapsed_seconds)
        :score = mean(:score)
        :score_median = median(:score)
        :cnt = $nrow
    end
    data(_) * mapping(:elapsed => "Avg. Elapsed Time (s)",
        :score => "Avg. Score (Max 100 pts)",
        color = :model => "Model")
    draw(; figure = (size = (600, 600),),
        axis = (xticklabelrotation = 45,
            title = "Elapsed Time vs Score for Paid APIs",
            limits = (xlims..., nothing, nothing)),
        palettes = (; color = Makie.ColorSchemes.tab20.colors))
end
SAVE_PLOTS && save("assets/elapsed-vs-score-scatter-paid.png", fig)
fig

Table:

  • Point per second is the average score divided by the average elapsed time
output = @chain df begin
    @by [:model, :prompt_label] begin
        :cost = mean(:cost)
        :elapsed = mean(:elapsed_seconds)
        :score_avg = mean(:score)
        :score_median = median(:score)
        :cnt = $nrow
    end
    @rtransform :point_per_second = :score_avg / :elapsed
    @orderby -:point_per_second
    #
    transform(_,
        names(_, Not(:model, :prompt_label, :cost)) .=> ByRow(x -> round(x, digits = 1)),
        renamecols = false)
    @rtransform :cost_cents = round(:cost * 100; digits = 2)
    select(Not(:cost))
    rename(_, names(_) .|> unscrub_string)
end
# markdown_table(output, String) |> clipboard
markdown_table(output)
ModelPrompt LabelElapsedScore AvgScore MedianCntPoint Per SecondCost Cents
gpt-3.5-turbo-0125JuliaExpertAsk0.974.780.0140.080.00.02
gpt-3.5-turbo-0125JuliaRecapTask1.266.975.0140.057.10.03
gpt-3.5-turbo-0125JuliaExpertCoTTask1.264.782.3140.052.30.03
gpt-4o-2024-05-13JuliaExpertAsk1.675.786.7140.047.80.0
gpt-3.5-turbo-0125InJulia1.673.080.0140.046.90.03
gpt-3.5-turbo-1106JuliaExpertAsk1.673.680.070.045.50.03
gpt-3.5-turbo-1106JuliaExpertCoTTask1.973.495.069.038.90.04
gpt-3.5-turbo-1106JuliaRecapTask1.955.062.569.029.20.05
claude-3-haiku-20240307JuliaExpertAsk2.875.080.0140.026.40.04
gpt-3.5-turbo-1106InJulia2.974.683.370.025.80.04
gpt-3.5-turbo-0125JuliaRecapCoTTask1.229.30.0140.025.40.03
gpt-3.5-turboJuliaExpertAsk3.160.960.070.019.60.03
claude-3-haiku-20240307JuliaRecapCoTTask4.279.190.0140.019.00.06
gpt-4o-2024-05-13JuliaExpertCoTTask4.380.690.0140.018.70.0
mistral-tinyJuliaExpertAsk2.444.350.070.018.70.01
claude-3-haiku-20240307JuliaRecapTask4.481.395.0140.018.40.06
claude-3-haiku-20240307InJulia4.275.185.8140.017.80.06
mistral-small-2402JuliaExpertAsk3.663.061.2140.017.60.0
gpt-4o-2024-05-13InJulia4.271.285.0140.016.90.0
mistral-smallJuliaExpertAsk3.761.452.570.016.50.06
claude-3-haiku-20240307JuliaExpertCoTTask4.264.162.5140.015.40.06
gpt-3.5-turboInJulia5.073.167.570.014.50.04
mistral-small-2402InJulia4.461.750.0140.014.00.0
mistral-tinyInJulia3.851.750.068.013.60.02
mistral-large-2402JuliaExpertAsk5.371.180.0140.013.50.0
mistral-small-2402JuliaExpertCoTTask4.662.161.9140.013.40.0
mistral-smallInJulia5.367.360.070.012.70.08
claude-3-sonnet-20240229JuliaExpertAsk6.379.090.0140.012.50.53
gpt-4o-2024-05-13JuliaRecapCoTTask5.567.964.6140.012.40.0
gpt-4o-2024-05-13JuliaRecapTask5.869.273.8140.011.90.0
mistral-smallJuliaExpertCoTTask5.359.955.070.011.40.08
gpt-4-turbo-2024-04-09JuliaExpertAsk7.078.586.7140.011.20.84
claude-3-sonnet-20240229JuliaExpertCoTTask7.280.395.0140.011.20.62
gpt-3.5-turboJuliaExpertCoTTask3.132.80.070.010.50.03
mistral-tinyJuliaRecapCoTTask4.950.550.070.010.30.03
gemini-1.0-pro-latestJuliaExpertAsk3.938.650.0140.010.00.0
mistral-small-2402JuliaRecapTask5.855.950.0140.09.60.0
mistral-tinyJuliaRecapTask5.147.250.070.09.30.03
mistral-large-2402InJulia7.567.962.5140.09.10.0
gemini-1.0-pro-latestJuliaExpertCoTTask4.035.225.0140.08.80.0
gemini-1.0-pro-latestInJulia4.136.025.0140.08.70.0
mistral-large-2402JuliaExpertCoTTask8.671.080.0140.08.20.0
claude-3-sonnet-20240229InJulia10.080.995.0140.08.10.84
claude-3-sonnet-20240229JuliaRecapCoTTask9.475.687.5140.08.00.77
gemini-1.0-pro-latestJuliaRecapTask4.333.325.0140.07.60.0
gpt-3.5-turbo-1106JuliaRecapCoTTask2.015.40.070.07.60.06
claude-3-sonnet-20240229JuliaRecapTask10.678.290.0140.07.40.91
mistral-smallJuliaRecapCoTTask7.656.157.570.07.40.12
gpt-3.5-turboJuliaRecapCoTTask3.626.20.070.07.40.04
gpt-4-1106-previewJuliaExpertAsk10.979.190.870.07.20.63
mistral-smallJuliaRecapTask7.755.955.070.07.20.13
gpt-4-0125-previewJuliaExpertAsk10.877.586.7140.07.20.49
gpt-4-turbo-2024-04-09JuliaExpertCoTTask10.575.695.0140.07.21.34
mistral-large-2402JuliaRecapTask10.573.690.0140.07.00.0
claude-2.1InJulia9.364.360.0140.06.90.65
mistral-small-2402JuliaRecapCoTTask8.256.650.0140.06.90.0
mistral-large-2402JuliaRecapCoTTask10.874.283.3140.06.90.0
claude-2.1JuliaExpertAsk9.665.471.2140.06.80.7
claude-2.1JuliaExpertCoTTask10.672.275.0140.06.80.87
claude-2.1JuliaRecapCoTTask10.669.275.0140.06.60.88
claude-2.1JuliaRecapTask10.668.475.0140.06.40.9
gemini-1.0-pro-latestJuliaRecapCoTTask4.830.825.0140.06.40.0
gpt-4-turbo-2024-04-09JuliaRecapTask11.572.390.0140.06.31.63
gpt-4-turbo-2024-04-09JuliaRecapCoTTask11.873.488.8140.06.21.61
mistral-tinyJuliaExpertCoTTask6.641.150.070.06.20.02
deepseek-coderJuliaRecapTask12.678.183.370.06.20.01
gpt-4-turbo-2024-04-09InJulia13.076.586.7140.05.91.49
deepseek-coderJuliaRecapCoTTask12.771.990.070.05.60.01
deepseek-coderInJulia14.581.186.770.05.60.01
gpt-3.5-turboJuliaRecapTask3.418.40.070.05.40.04
deepseek-coderJuliaExpertAsk13.169.983.370.05.30.01
mistral-mediumJuliaExpertAsk12.360.555.070.04.90.26
claude-3-opus-20240229JuliaExpertCoTTask17.685.1100.0140.04.83.5
claude-3-opus-20240229JuliaExpertAsk17.484.090.0140.04.83.41
deepseek-coderJuliaExpertCoTTask12.056.867.570.04.70.01
deepseek-chatJuliaRecapTask16.975.588.870.04.50.01
mistral-mediumInJulia14.863.160.070.04.30.34
deepseek-chatInJulia18.376.487.170.04.20.01
deepseek-chatJuliaExpertCoTTask18.375.390.075.04.10.01
deepseek-chatJuliaRecapCoTTask18.972.575.070.03.80.01
claude-3-opus-20240229InJulia22.184.1100.0140.03.84.46
claude-3-opus-20240229JuliaRecapCoTTask21.781.688.8140.03.83.9
claude-3-opus-20240229JuliaRecapTask22.881.290.0140.03.64.21
gpt-4-1106-previewJuliaExpertCoTTask21.771.892.570.03.31.12
deepseek-chatJuliaExpertAsk17.156.475.070.03.30.01
mistral-mediumJuliaExpertCoTTask20.063.462.570.03.20.43
mistral-mediumJuliaRecapTask20.261.265.070.03.00.53
gpt-4-1106-previewJuliaRecapCoTTask25.072.485.670.02.91.48
gpt-4-1106-previewJuliaRecapTask26.973.677.570.02.71.54
gpt-4-1106-previewInJulia27.474.986.770.02.71.29
gpt-4-0125-previewJuliaExpertCoTTask28.572.495.0140.02.51.2
mistral-mediumJuliaRecapCoTTask23.355.950.070.02.40.5
gpt-4-0125-previewInJulia34.472.786.7140.02.11.39
gpt-4-0125-previewJuliaRecapCoTTask37.275.090.0140.02.01.68
gpt-4-0125-previewJuliaRecapTask40.874.690.0140.01.81.71

Test Case Performance

Performance of different models across each test case

output = @chain df begin
    @by [:model, :name] begin
        :score = mean(:score)
    end
    #
    @aside average_ = @by _ :name :AverageScore=mean(:score) |> x -> round(x, digits = 1)
    unstack(:name, :model, :score; fill = 0.0)
    transform(_, names(_, Number) .=> ByRow(x -> round(x, digits = 1)), renamecols = false)
    leftjoin(average_, on = :name)
    @orderby -:AverageScore
end
markdown_table(output)
nameclaude-2.1claude-3-haiku-20240307claude-3-opus-20240229claude-3-sonnet-20240229deepseek-chatdeepseek-codergemini-1.0-pro-latestgpt-3.5-turbogpt-3.5-turbo-0125gpt-3.5-turbo-1106gpt-4-0125-previewgpt-4-1106-previewgpt-4-turbo-2024-04-09gpt-4o-2024-05-13mistral-large-2402mistral-mediummistral-smallmistral-small-2402mistral-tinyAverageScore
FloatWithUnits62.098.0100.0100.0100.0100.057.076.091.580.060.572.078.593.599.598.070.0100.080.285.1
timezone_bumper82.198.199.795.5100.0100.039.948.077.479.290.090.094.895.096.497.076.678.162.084.2
clean_column100.089.8100.096.478.471.241.535.566.769.888.890.590.089.391.681.084.699.780.881.3
keeponlynames90.165.085.394.988.474.454.050.880.674.290.991.086.277.598.766.276.667.951.077.0
wrap_string93.877.264.570.281.782.532.664.050.155.394.997.894.697.071.984.768.068.648.373.6
countmodelrows58.082.698.894.867.260.736.652.875.756.297.498.489.389.078.679.067.261.753.273.5
weatherdataanalyzer74.193.386.886.893.083.826.535.264.259.085.485.081.067.486.085.455.452.656.871.5
add_yearmonth53.886.292.081.071.262.535.833.067.665.278.672.875.968.072.248.062.240.233.263.1
event_scheduler86.576.690.277.276.082.437.829.044.442.887.966.682.573.857.336.059.038.737.262.2
ispersonal52.069.054.072.061.084.016.043.072.068.654.356.066.562.067.235.048.048.029.555.7
audi_filter38.056.093.063.847.057.828.127.055.058.047.558.049.056.258.043.048.544.827.050.3
extractjuliacode56.460.465.448.241.348.636.441.043.648.454.548.756.152.544.131.852.250.430.147.9
qanda_extractor73.562.368.065.543.326.726.231.735.536.756.753.349.345.346.838.744.755.836.047.2
pig_latinify30.634.667.157.049.067.118.724.739.823.154.761.460.154.233.627.828.831.633.142.0

This page was generated using Literate.jl.