Closed samchon closed 1 year ago
TSError: ⨯ Unable to compile TypeScript:
benchmark/internal/AssertBenchmarker.ts:36:33 - error TS2538: Type 'undefined' cannot be used as an index type.
36 (output as any)[elem.name] = elem.count / elem.times.elapsed;
~~~~~~~~~
As a result of executing the command shown above, an error occurs in 'npm run benchmark'. Below is the error code, but I hid the error code because I didn't want my folder structure to be revealed. If you still want to get the benchmark results, I think you should check it out.
@kakasoo No AssertBenchmarker
class exists more.
I think you're running on previous version of typia
(maybe 4 months ago).
What about getting latest commit?
@samchon
Oh, sorry. I used the command above, forgetting that I had previously forked typescript-json (typia). I have an M1 Pro and i7-8 intel core laptop, and if I have free time this week, I will provide a benchmark. ( It's an old laptop, but it's okay, right? )
By #332 update,
typia
became much faster. Therefore, I want to re-measure benchmark on multiple devices.If you want to help this
typia
project, fork, clone and run below commands. After running the benchmark program, a new directory would be created under benchmark/results following your CPU name. Check the newly generated markdown file and send PR with your new commit.Whe you're running benchmark on notebook, please process the benchmark program on the charging state. Also, all the benchmarked CPUs are listed up into here: samchon/typia/benchmark/results. It's not forbidden to sending duplicated CPU benchmark PR, such duplicated CPU benchmark would be accepted only when the new benchmark performance is better than previous.
npm install
npm run benchmark
For reference, the benchmark takes about 30 minutes.
Below is an example of the benchmark output, measured on Intel i5-1135g7, Surface Pro 8