Skip to content

Files

Latest commit

550473b · Feb 10, 2023

History

History

lambda-heavy-compute

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 10, 2023
Feb 10, 2023
Feb 10, 2023
Feb 10, 2023
Feb 10, 2023

Rust over 400 times faster

Screenshot 2023-02-10 at 3 44 35 PM

A rust version of the following

def lambda_handler(event, context):
    result = ''
    for i in range(1, 11):
        # Perform a heavy computation
        computation = sum(range(1000000))

        result += 'Iteration {}: {}\n'.format(i, computation)

    return result