Skip to content

Add benchmark for Koto#4

Closed
pyroraptor07 wants to merge 2 commits intokhvzak:mainfrom
pyroraptor07:main
Closed

Add benchmark for Koto#4
pyroraptor07 wants to merge 2 commits intokhvzak:mainfrom
pyroraptor07:main

Conversation

@pyroraptor07
Copy link
Contributor

I added a benchmark for the Koto scripting language. Also, I updated the environment table in the README to reflect the environment in which the new benchmarks were generated.

irh pushed a commit to irh/script-bench-rs that referenced this pull request Apr 9, 2025
This is an updated version of the PR at [1],
using Koto 0.15, and with some improvements to the Koto script.
- Export a `bench` function rather than reinitialzing the script on each
  run.
- Use `size charset` rather than `charset.count()`.
- Use `data.to_string()` rather than folding on temporary strings.

[1] khvzak#4
irh pushed a commit to irh/script-bench-rs that referenced this pull request Apr 9, 2025
This is an updated version of khvzak#4 that updates the benchmark to use
Koto `0.15`, and includes some improvements to the Koto script.

- Export a `bench` function rather than reinitializing the script on
  each run.
- Use `size charset` rather than `charset.count()`.
- Use `data.to_string()` rather than folding on temporary strings.
irh pushed a commit to irh/script-bench-rs that referenced this pull request Apr 9, 2025
This is an updated version of khvzak#4 that updates the benchmark to use
Koto `0.15`, and includes some improvements to the Koto script.

- Export a `bench` function rather than reinitializing the script on
  each run.
- Use a tuple for `charset` rather than a list.
- Use `size charset` rather than `charset.count()` (`count` counts via
  iteration rather than taking the tuple's size).
- Use `data.to_string()` rather than folding a series of temporary
  strings.
irh pushed a commit to irh/script-bench-rs that referenced this pull request Apr 9, 2025
This is an updated version of khvzak#4 that updates the benchmark to use
Koto `0.15`, and includes some improvements to the Koto script.

- Export a `bench` function rather than reinitializing the script on
  each run.
- Use a tuple for `charset` rather than a list.
- Use `size charset` rather than `charset.count()` (`count` counts via
  iteration rather than taking the tuple's size).
- Use `data.to_string()` rather than folding a series of temporary
  strings.
irh pushed a commit to irh/script-bench-rs that referenced this pull request Apr 9, 2025
This is an updated version of khvzak#4 that updates the benchmark to use
Koto `0.15`, and includes some improvements to the Koto script.

- Export a `bench` function rather than reinitializing the script on
  each run.
- Use a tuple for `charset` rather than a list.
- Use `size charset` rather than `charset.count()` (`count` counts via
  iteration rather than taking the tuple's size).
- Use `data.to_string()` rather than folding a series of temporary
  strings.
irh pushed a commit to irh/script-bench-rs that referenced this pull request Apr 9, 2025
This is an updated version of khvzak#4 that updates the benchmark to use
Koto `0.15`, and includes some improvements to the Koto script.

- Export a `bench` function rather than reinitializing the script on
  each run.
- Use a tuple for `charset` rather than a list.
- Use `size charset` rather than `charset.count()` (`count` counts via
  iteration rather than taking the tuple's size).
- Use `data.to_string()` rather than folding a series of temporary
  strings.
@irh irh mentioned this pull request Apr 9, 2025
khvzak pushed a commit that referenced this pull request Apr 9, 2025
This is an updated version of #4 that updates the benchmark to use
Koto `0.15`, and includes some improvements to the Koto script.

- Export a `bench` function rather than reinitializing the script on
  each run.
- Use a tuple for `charset` rather than a list.
- Use `size charset` rather than `charset.count()` (`count` counts via
  iteration rather than taking the tuple's size).
- Use `data.to_string()` rather than folding a series of temporary
  strings.

Co-authored-by: Matt George <pyroraptor07@gmail.com>
@khvzak khvzak closed this Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants