3

@12bitfloat, we're having a new compatitor in the game:
***benchmarking***
Time C: 0.41911959648132324
Time Rust: 0.4686765670776367
Time CPP: 1.7605431079864502
Time Borded CPP: 1.140819787979126
Time Jest Rust: 1.7274057865142822
Time Swift: 0.4625704288482666

It's swift: https://retoor.molodetz.nl/retoor/...

How does it run locally at your PC?

Comments
  • 2
    Oh shit, may have to install swift now. Wanted to check out that language for a while :P
  • 2
    Whats funny is this is literally my first run after compiling, swift wins!

    Time C: 0.23500466346740723

    Time Rust: 0.09973406791687012

    Time CPP: 0.4095611572265625

    Time Borded CPP: 0.6213748455047607

    Time Jest Rust: 0.28962039947509766

    Time Swift: 0.09300994873046875

    But almost all runs after that Rust wins e.g.

    Time Rust: 0.08958315849304199

    Time Swift: 0.09246969223022461

    Time Rust: 0.08958315849304199

    Time Swift: 0.09246969223022461
  • 2
    After like 20 runs I got another swift win:

    Time C: 0.10503029823303223

    Time Rust: 0.0970664024353027355

    Time Swift: 0.09548282623291016

    :P
  • 2
    I think this time I don’t need to preach how great Swift is :)
  • 2
    Maybe we should also try the crystal language :P
  • 2
    On the server, C always wins and it's a tie between Rust and Swift: https://retoor.molodetz.nl/retoor/...

    I am now normalizing the C output to the same as the python version output (just like I did with Swift) because i'm taking that as the one with the good output. Python does seem to do some stuff under the hood. It's not good for the performance of the apps to normalize the output.
  • 2
    On 700 books, only one two words difference:

    ⎿  Python:

    Total Words: 81426008

    ⎿  Swift:

    Total Words: 81426006
  • 1
    Made a swift snekbot now with 70 functions. Most impressive is the deep research. All functions: dice_roll, dice_d20, dice_d6, dice_coin, eightball_ask, eightball_detailed, eightball_stats, web_search, web_fetch, calc_eval, calc_help, calc_percent, calc_tip, karma_give, karma_take, karma_check, karma_leaderboard, timer_set, timer_check, timer_cancel, timer_list, note_save, note_get, note_delete, note_list, note_search, quote_add, quote_random, quote_search, quote_count, poll_create, poll_vote, poll_results, poll_close, poll_list, todo_add, todo_complete, todo_delete, todo_list, todo_list_user, todo_clear_completed, seen_check, seen_list_active, seen_stats, seen_first, random_choice, random_shuffle, random_number, random_password, random_hex, random_uuid, random_pick, random_color, convert_length, convert_weight, convert_temperature, convert_volume, convert_data, convert_time, timezone_now, timezone_convert, timezone_list, timezone_diff. It's 39mb :P
Add Comment